mirror of https://github.com/liamg/aminal.git
gui.Close now wakes up main loop
Without this, otherwise successful tests in main_test.go hang.
This commit is contained in:
parent
d15a67ce2c
commit
c69e2f52d8
|
@ -326,6 +326,7 @@ func (gui *GUI) getTermSize() (uint, uint) {
|
||||||
|
|
||||||
func (gui *GUI) Close() {
|
func (gui *GUI) Close() {
|
||||||
gui.window.SetShouldClose(true)
|
gui.window.SetShouldClose(true)
|
||||||
|
glfw.PostEmptyEvent() // wake up main loop so it notices close request
|
||||||
}
|
}
|
||||||
|
|
||||||
func (gui *GUI) Render() error {
|
func (gui *GUI) Render() error {
|
||||||
|
|
Loading…
Reference in New Issue