Mercurial > dwindows
changeset 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 | a7db94445080 |
children | ff844a41193b |
files | mac/dw.m |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
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)