From 1eb67b820758b0af8e5a5dab9582c38c793296de Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sat, 24 Apr 2021 05:18:44 +0900 Subject: [PATCH] internal/uidriver/glfw: Avoid busy loop by sleeping Updates #1580 --- internal/uidriver/glfw/ui.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index 0b4d11ee4..27db18ee4 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -1062,6 +1062,7 @@ func (u *UserInterface) setWindowSize(width, height int, fullscreen bool) { case <-t.C: break event default: + time.Sleep(time.Millisecond) } } u.window.SetFramebufferSizeCallback(nil)