diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index bd6fa03c0..1c2fcd236 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -1019,7 +1019,7 @@ func (u *userInterfaceImpl) update() (float64, float64, error) { return 0, 0, err } - for !u.isRunnableOnUnfocused() && u.window.GetAttrib(glfw.Focused) == 0 && !u.window.ShouldClose() { + for u.bufferOnceSwapped && !u.isRunnableOnUnfocused() && u.window.GetAttrib(glfw.Focused) == 0 && !u.window.ShouldClose() { if err := hooks.SuspendAudio(); err != nil { return 0, 0, err }