|
@@ -1025,7 +1025,12 @@ static GLFWbool createNativeWindow(_GLFWwindow* window,
|
|
|
_glfw.ns.cascadePoint = [window->ns.object cascadeTopLeftFromPoint:_glfw.ns.cascadePoint];
|
|
|
|
|
|
if (wndconfig->resizable)
|
|
|
- [window->ns.object setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
|
|
|
+ {
|
|
|
+ const NSWindowCollectionBehavior behavior =
|
|
|
+ NSWindowCollectionBehaviorFullScreenPrimary |
|
|
|
+ NSWindowCollectionBehaviorManaged;
|
|
|
+ [window->ns.object setCollectionBehavior:behavior];
|
|
|
+ }
|
|
|
|
|
|
if (wndconfig->floating)
|
|
|
[window->ns.object setLevel:NSFloatingWindowLevel];
|