From 10e9f6b927c5208fce290fea346a8a2ad7ac3fa3 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sat, 1 Mar 2014 18:04:09 -0500 Subject: Fixed non-minimizeable windows in Mac OS X; it was a simple copy-paste fail. --- sysdata_darwin.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdata_darwin.go') diff --git a/sysdata_darwin.go b/sysdata_darwin.go index 797fe70..37352a3 100644 --- a/sysdata_darwin.go +++ b/sysdata_darwin.go @@ -68,7 +68,7 @@ var classTypes = [nctypes]*classData{ win = objc_msgSend_rect_uint_uint_bool(win, _initWithContentRect, 0, 0, 100, 100, - NSTitledWindowMask | NSClosableWindowMask | NSClosableWindowMask | NSResizableWindowMask, + NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask, 2, // NSBackingStoreBuffered - the only backing store method that Apple says we should use (the others are legacy) C.BOOL(C.YES)) // defer creation of device until we show the window objc_setDelegate(win, appDelegate) -- cgit v1.2.3