internal/ui: avoid a busy loop in restoreWindow

Updates #1826
This commit is contained in:
Hajime Hoshi 2022-04-10 17:55:36 +09:00
parent 3fe1df8b3b
commit 2a5b5b4823

View File

@ -1478,6 +1478,7 @@ func (u *userInterfaceImpl) restoreWindow() {
if runtime.GOOS != "darwin" {
for u.window.GetAttrib(glfw.Maximized) == glfw.True || u.window.GetAttrib(glfw.Iconified) == glfw.True {
glfw.PollEvents()
time.Sleep(time.Second / 60)
}
}