From 169e2d8d92f2c1b02e68eb215bba66e9ef0a4990 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 28 Feb 2017 17:07:55 -0500 Subject: [PATCH] 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 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c index 515a779aec..5f3efd8011 100644 --- a/gdk/quartz/gdkwindow-quartz.c +++ b/gdk/quartz/gdkwindow-quartz.c @@ -2272,7 +2272,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];