diff options
author | David Robillard <d@drobilla.net> | 2019-07-21 21:49:03 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-07-21 21:49:03 +0200 |
commit | f3366ef94dc814976243ae62064a1cf5189df37c (patch) | |
tree | f9189dc4ccfc63a61a9267cc21fe69c28649b744 | |
parent | 354f7576876d5c0a00945a5167262827425e4b42 (diff) |
Make windows miniaturizable on MacOS
-rw-r--r-- | pugl/pugl_osx.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pugl/pugl_osx.m b/pugl/pugl_osx.m index f3054fd..80bad14 100644 --- a/pugl/pugl_osx.m +++ b/pugl/pugl_osx.m @@ -673,7 +673,9 @@ puglCreateWindow(PuglView* view, const char* title) length:strlen(title) encoding:NSUTF8StringEncoding]; NSRect frame = NSMakeRect(0, 0, view->min_width, view->min_height); - unsigned style = NSClosableWindowMask | NSTitledWindowMask; + unsigned style = (NSClosableWindowMask | + NSTitledWindowMask | + NSMiniaturizableWindowMask ); if (view->hints.resizable) { style |= NSResizableWindowMask; } |