From 75a4f45a232c6728364b1012dee2ce017a9a8023 Mon Sep 17 00:00:00 2001 From: pagedown Date: Sat, 18 Feb 2023 17:43:45 +0800 Subject: [PATCH] ... --- kitty/glfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index 2f02f96f6..e02f82d5d 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -999,7 +999,7 @@ create_os_window(PyObject UNUSED *self, PyObject *args, PyObject *kw) { // Update window state // We do not call glfwWindowHint to set GLFW_MAXIMIZED before the window is created. // That would cause the window to be set to maximize immediately after creation and use the wrong initial size when restored. - change_state_for_os_window(w, window_state); + if (window_state != WINDOW_NORMAL) change_state_for_os_window(w, window_state); #ifdef __APPLE__ // macOS: Show the window after it is ready glfwShowWindow(glfw_window);