From f3366ef94dc814976243ae62064a1cf5189df37c Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 21 Jul 2019 21:49:03 +0200 Subject: Make windows miniaturizable on MacOS --- pugl/pugl_osx.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pugl') 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; } -- cgit v1.2.1