[gtk+/gtk-3-22] quartz: Let CSD windows be fullscreen



commit 60e7e15f541c120e8d8ceb79e544abe9eab3268e
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 28 17:07:55 2017 -0500

    quartz: Let CSD windows be fullscreen
    
    I've found that I need this patch to make it possible for
    windows with headerbar to be made fullscreen on OS X.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=779383

 gdk/quartz/gdkwindow-quartz.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index f3eceb1..b11aec5 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c
@@ -2422,7 +2422,10 @@ gdk_quartz_window_set_decorations (GdkWindow       *window,
         }
 
       if (new_mask == NSBorderlessWindowMask)
-        [impl->toplevel setContentSize:rect.size];
+        {
+          [impl->toplevel setContentSize:rect.size];
+          [impl->toplevel setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
+        }
       else
         [impl->toplevel setFrame:rect display:YES];
 


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