Cocoa: Fix full screen window iconification

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

(cherry picked from commit 2c519709be)
This commit is contained in:
Camilla Löwy 2019-11-12 18:23:04 +01:00 committed by Camilla Löwy
parent e662492169
commit 52b77030e4

View File

@ -35,15 +35,14 @@
// //
static NSUInteger getStyleMask(_GLFWwindow* window) static NSUInteger getStyleMask(_GLFWwindow* window)
{ {
NSUInteger styleMask = 0; NSUInteger styleMask = NSWindowStyleMaskMiniaturizable;
if (window->monitor || !window->decorated) if (window->monitor || !window->decorated)
styleMask |= NSWindowStyleMaskBorderless; styleMask |= NSWindowStyleMaskBorderless;
else else
{ {
styleMask |= NSWindowStyleMaskTitled | styleMask |= NSWindowStyleMaskTitled |
NSWindowStyleMaskClosable | NSWindowStyleMaskClosable;
NSWindowStyleMaskMiniaturizable;
if (window->resizable) if (window->resizable)
styleMask |= NSWindowStyleMaskResizable; styleMask |= NSWindowStyleMaskResizable;