Commit 52b77030 authored by Camilla Löwy's avatar Camilla Löwy Committed by Camilla Löwy
Browse files

Cocoa: Fix full screen window iconification

Iconification (miniaturization) of undecorated windows stopped working
unless the window has the NSWindowStyleMaskMiniaturizable style.

(cherry picked from commit 2c519709be0dacc7af2908982a7ab80b889a8126)
parent e6624921
......@@ -35,15 +35,14 @@
static NSUInteger getStyleMask(_GLFWwindow* window)
NSUInteger styleMask = 0;
NSUInteger styleMask = NSWindowStyleMaskMiniaturizable;
if (window->monitor || !window->decorated)
styleMask |= NSWindowStyleMaskBorderless;
styleMask |= NSWindowStyleMaskTitled |
NSWindowStyleMaskClosable |
if (window->resizable)
styleMask |= NSWindowStyleMaskResizable;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment