gui.Close now wakes up main loop

Without this, otherwise successful tests in main_test.go hang.
This commit is contained in:
Menno Finlay-Smits 2019-03-12 13:32:42 +13:00
parent d15a67ce2c
commit c69e2f52d8
1 changed files with 1 additions and 0 deletions

View File

@ -326,6 +326,7 @@ func (gui *GUI) getTermSize() (uint, uint) {
func (gui *GUI) Close() {
gui.window.SetShouldClose(true)
glfw.PostEmptyEvent() // wake up main loop so it notices close request
}
func (gui *GUI) Render() error {