From ebf74278cd2197119f5cb54d923a40b40182e6cf Mon Sep 17 00:00:00 2001 From: faris <1920237418@qq.com> Date: Thu, 21 Nov 2024 16:55:59 +0800 Subject: [PATCH] Resolve some issues with reopening full screen windows Resolve the issue of incorrect position when opening a full screen window after it is hidden. Resolve the issue of flickering when the mouse is placed on the taskbar when the full screen window is hidden and opened again. --- internal/driver/glfw/window.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/internal/driver/glfw/window.go b/internal/driver/glfw/window.go index 6639d79ba7..d0e121168a 100644 --- a/internal/driver/glfw/window.go +++ b/internal/driver/glfw/window.go @@ -1023,6 +1023,13 @@ func (w *window) doShowAgain() { w.viewLock.Lock() w.visible = true w.viewLock.Unlock() + + if w.fullScreen { // this does not work if called before viewport.Show() + go func() { + time.Sleep(time.Millisecond * 100) + w.SetFullScreen(true) + }() + } }) }