From 8ffa681e02abf16ce8f98ad7da416d77ba3b7518 Mon Sep 17 00:00:00 2001 From: Luca Bacci Date: Fri, 22 Mar 2024 13:44:10 +0100 Subject: [PATCH] GdkWin32: Always set WS_MINIMIZEBOX on GdkToplevel Regardless if server-side decorated or not. This way the shell knows that the window can be minimized. Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3749 --- gdk/win32/gdksurface-win32.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gdk/win32/gdksurface-win32.c b/gdk/win32/gdksurface-win32.c index 1ebfaa91c2..13bd0db1aa 100644 --- a/gdk/win32/gdksurface-win32.c +++ b/gdk/win32/gdksurface-win32.c @@ -1627,7 +1627,7 @@ _gdk_win32_surface_lacks_wm_decorations (GdkSurface *window) has_any_decorations = FALSE; if (style & (WS_BORDER | WS_THICKFRAME | WS_CAPTION | - WS_SYSMENU | WS_MINIMIZEBOX | WS_MAXIMIZEBOX)) + WS_SYSMENU | WS_MAXIMIZEBOX)) has_any_decorations = TRUE; else GDK_NOTE (MISC, g_print ("Window %p (handle %p): has no decorations (style %lx)\n", @@ -1696,7 +1696,6 @@ _gdk_win32_surface_update_style_bits (GdkSurface *window) update_single_bit (&new_style, all, decorations & GDK_DECOR_RESIZEH, WS_THICKFRAME); update_single_bit (&new_style, all, decorations & GDK_DECOR_TITLE, WS_CAPTION); update_single_bit (&new_style, all, decorations & GDK_DECOR_MENU, WS_SYSMENU); - update_single_bit (&new_style, all, decorations & GDK_DECOR_MINIMIZE, WS_MINIMIZEBOX); update_single_bit (&new_style, all, decorations & GDK_DECOR_MAXIMIZE, WS_MAXIMIZEBOX); }