macos: allow windows to enter fullscreen
authorChristian Hergert <christian@hergert.me>
Fri, 18 Feb 2022 09:52:48 +0000 (01:52 -0800)
committerChristian Hergert <christian@hergert.me>
Fri, 18 Feb 2022 09:54:10 +0000 (01:54 -0800)
commit592436503cadbdf52f5012c8a93bb99d7d1fa36a
tree3584a79ed1370d1bb6c4b38bb45102995118b2a6
parent67a5120b5b4bf458f64d5c3d822b9bb7122994e8
macos: allow windows to enter fullscreen

This fixes GTK's NSWindow for toplevels so that they are allowed to enter
fullscreen. We were already handlign the state transitions from the
setStyleMask: halper, but we didn't previously tell the window we are
allowed to transition into that.

There is a bit of a mismatch here in that GTK doesn't have any such flag
that determines if a window is "allowed" by policy to enter fullscreen
since window managers on Linux are free to do that at will.
gdk/macos/GdkMacosWindow.c
gdk/macos/gdkmacostoplevelsurface.c