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 aebe3a74ec
commit 60e7e15f54

View File

@ -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];