[gtk/gtk-3-24: 1/2] Keep window without decoration miniaturizable




commit 238bb382492103d1ab15dabb175f448a048eba24
Author: Cédric Krier <ced b2ck com>
Date:   Wed Mar 10 16:04:28 2021 +0100

    Keep window without decoration miniaturizable
    
    Closes #2345

 gdk/quartz/gdkwindow-quartz.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 0cf7f9057d..62558d1527 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2441,11 +2441,14 @@ gdk_quartz_window_set_decorations (GdkWindow       *window,
 
   impl = GDK_WINDOW_IMPL_QUARTZ (window->impl);
 
-  if (decorations == 0 || GDK_WINDOW_TYPE (window) == GDK_WINDOW_TEMP ||
+  if (GDK_WINDOW_TYPE (window) == GDK_WINDOW_TEMP ||
       impl->type_hint == GDK_WINDOW_TYPE_HINT_SPLASHSCREEN )
     {
       new_mask = GDK_QUARTZ_BORDERLESS_WINDOW;
     }
+  else if (decorations == 0) {
+      new_mask = GDK_QUARTZ_BORDERLESS_WINDOW | GDK_QUARTZ_MINIATURIZABLE_WINDOW;
+    }
   else
     {
       /* FIXME: Honor other GDK_DECOR_* flags. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]