diff --git a/internal/uidriver/glfw/ui.go b/internal/uidriver/glfw/ui.go index 71d79b525..6498f4215 100644 --- a/internal/uidriver/glfw/ui.go +++ b/internal/uidriver/glfw/ui.go @@ -1472,6 +1472,10 @@ func (u *UserInterface) Window() driver.Window { // maximizeWindow must be called from the main thread. func (u *UserInterface) maximizeWindow() { + if u.isNativeFullscreen() { + return + } + if u.setSizeCallbackEnabled { u.setSizeCallbackEnabled = false defer func() { @@ -1497,6 +1501,10 @@ func (u *UserInterface) maximizeWindow() { // iconifyWindow must be called from the main thread. func (u *UserInterface) iconifyWindow() { + if u.isNativeFullscreen() { + return + } + if u.setSizeCallbackEnabled { u.setSizeCallbackEnabled = false defer func() {