internal/ui: bug fix: glfwWindow.IsMaximized should not return true on fullscreen

Closes #2239
This commit is contained in:
Hajime Hoshi 2022-08-10 21:07:48 +09:00
parent 7a936f7052
commit b5196a5a7c

View File

@ -105,7 +105,7 @@ func (w *glfwWindow) IsMaximized() bool {
} }
var v bool var v bool
w.ui.t.Call(func() { w.ui.t.Call(func() {
v = w.ui.window.GetAttrib(glfw.Maximized) == glfw.True v = w.ui.window.GetAttrib(glfw.Maximized) == glfw.True && !w.ui.isNativeFullscreen()
}) })
return v return v
} }