From a19bbd3b09799c6e86d6693cf9a8b3728aaee6bf Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 3 Feb 2022 00:28:11 +0900 Subject: [PATCH] internal/uidriver/glfw: use shoten sleeping time at waitForFramebufferSizeCallback Updates #1918 --- internal/uidriver/glfw/ui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index 6f09d9257..824314f7a 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -807,7 +807,7 @@ func (u *UserInterface) waitForFramebufferSizeCallback(window *glfw.Window, f fu } // Use the timeout as FramebufferSize event might not be fired (#1618). - t := time.NewTimer(time.Second) + t := time.NewTimer(100 * time.Millisecond) defer t.Stop() event: