diff --git a/internal/ui/window_glfw.go b/internal/ui/window_glfw.go index 9db38e9cc..cd83cffb5 100644 --- a/internal/ui/window_glfw.go +++ b/internal/ui/window_glfw.go @@ -119,6 +119,11 @@ func (w *glfwWindow) Maximize() { return } + minw, minh, maxw, maxh := w.ui.getWindowSizeLimitsInDIP() + if minw != glfw.DontCare || minh != glfw.DontCare || maxw != glfw.DontCare || maxh != glfw.DontCare { + return + } + if !w.ui.isRunning() { w.ui.setInitWindowMaximized(true) return