Mercurial > dwindows
comparison 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 |
comparison
equal
deleted
inserted
replaced
1606:a7db94445080 | 1607:d7fcea7bfcf9 |
---|---|
7829 [window setContentView:view]; | 7829 [window setContentView:view]; |
7830 [window setDelegate:view]; | 7830 [window setDelegate:view]; |
7831 [window setAutorecalculatesKeyViewLoop:YES]; | 7831 [window setAutorecalculatesKeyViewLoop:YES]; |
7832 [window setAcceptsMouseMovedEvents:YES]; | 7832 [window setAcceptsMouseMovedEvents:YES]; |
7833 [view release]; | 7833 [view release]; |
7834 | |
7835 /* Enable full screen mode on resizeable windows */ | |
7836 if(flStyle & DW_FCF_SIZEBORDER) | |
7837 { | |
7838 [window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary]; | |
7839 } | |
7834 | 7840 |
7835 /* If it isn't a toplevel window... */ | 7841 /* If it isn't a toplevel window... */ |
7836 if(hwndOwner) | 7842 if(hwndOwner) |
7837 { | 7843 { |
7838 id object = hwndOwner; | 7844 id object = hwndOwner; |