diff mac/dw.m @ 1607:d7fcea7bfcf9

Add full screen support for resizable windows on Mac 10.7.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 02 Mar 2012 14:19:55 +0000
parents 19af25f71e1f
children 48a61abcd5bb
line wrap: on
line diff
--- a/mac/dw.m	Sun Feb 26 10:53:23 2012 +0000
+++ b/mac/dw.m	Fri Mar 02 14:19:55 2012 +0000
@@ -7831,6 +7831,12 @@
     [window setAutorecalculatesKeyViewLoop:YES];
     [window setAcceptsMouseMovedEvents:YES];
     [view release];
+    
+    /* Enable full screen mode on resizeable windows */
+    if(flStyle & DW_FCF_SIZEBORDER)
+    {
+        [window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
+    }
 
     /* If it isn't a toplevel window... */
     if(hwndOwner)