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
This commit is contained in:
Matthias Clasen 2017-02-28 17:07:55 -05:00
parent bbf7c6a715
commit 169e2d8d92

View File

@ -2272,7 +2272,10 @@ gdk_quartz_window_set_decorations (GdkWindow *window,
} }
if (new_mask == NSBorderlessWindowMask) if (new_mask == NSBorderlessWindowMask)
[impl->toplevel setContentSize:rect.size]; {
[impl->toplevel setContentSize:rect.size];
[impl->toplevel setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
}
else else
[impl->toplevel setFrame:rect display:YES]; [impl->toplevel setFrame:rect display:YES];