| Summary: | Support full-screen windows in Lion | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Alex Blewitt <alex.blewitt> | ||||
| Component: | SWT | Assignee: | Platform-SWT-Inbox <platform-swt-inbox> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | |||||
| Severity: | enhancement | ||||||
| Priority: | P3 | CC: | eclipse.felipe | ||||
| Version: | 4.1 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X - Carbon (unsup.) | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Alex Blewitt
I believe this is the important document: http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindow_Class/Reference/Reference.html This constant indicates that a window is in fullscreen mode. enum { NSFullScreenWindowMask = 1 << 14 }; There's also some options on the NSApplication which can inform whether it's in fullscreen mode (or not). There's a blog here: http://oleb.net/blog/2011/07/whats-new-for-developers-in-lion-part-1/ This command will give full screen access on the primary monitor:
[window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenPrimary];
It can run on non-primary monitors with:
[window setCollectionBehavior:NSWindowCollectionBehaviorFullScreenAuxiliary];
Note that all the pieces are already in the SWT implementation to support this: Shell shell = window.getShell(); NSWindow nswindow = shell.view.window(); nswindow.setCollectionBehavior(1<<7); *** This bug has been marked as a duplicate of bug 349148 *** Created attachment 200299 [details]
test patch
I still don't have Lion :(
could you please try this patch and let me know if it works for you ? Thank.
|