diff options
author | Sven Gothel <[email protected]> | 2013-12-03 21:54:57 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-12-03 21:54:57 +0100 |
commit | 0237bde0f3c13d393c3942b41f79656a80fd578d (patch) | |
tree | d8731ebd9acbde766600dcddccefc4414d68ba7c /src/newt/native/NewtMacWindow.h | |
parent | 354b0b370bbfd14743267a9466f5e91e4d218a42 (diff) |
Bug 914: Newt OSX: Reset NSApp's presentationOptions @ windowClose0() / Assume having focus in fullscreen-mode
- Reset NSApp's presentationOptions @ windowClose0()
Commit 69c334448cfe8af553fd97689137ecf8f996b378 started using the [NSApp setPresentationOptions: opts]
but missed to reset to defaults @ windowClose0();
- Assume having focus in fullscreen-mode
NewtMacWindow::windowDidBecomeKey()' is not always called in fullscreen-mode!
Note: OSX Fullscreen from a browser still shows the browser title-bar
until mouse-click. Don't know how to avoid this. Minor issue..
Diffstat (limited to 'src/newt/native/NewtMacWindow.h')
-rw-r--r-- | src/newt/native/NewtMacWindow.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newt/native/NewtMacWindow.h b/src/newt/native/NewtMacWindow.h index a3bd5c41b..ba60b5665 100644 --- a/src/newt/native/NewtMacWindow.h +++ b/src/newt/native/NewtMacWindow.h @@ -64,9 +64,6 @@ volatile NSTrackingRectTag ptrTrackingTag; NSRect ptrRect; NSCursor * myCursor; -@public - NSUInteger defaultPresentationOptions; - NSUInteger fullscreenPresentationOptions; } - (id)initWithFrame:(NSRect)frameRect; @@ -113,7 +110,6 @@ @interface NewtMacWindow : NSWindow #endif { - BOOL isFullscreenWindow; BOOL mouseConfined; BOOL mouseVisible; BOOL mouseInside; @@ -122,6 +118,10 @@ BOOL modsDown[4]; // shift, ctrl, alt/option, win/command NSPoint lastInsideMousePosition; @public + BOOL hasPresentationSwitch; + NSUInteger defaultPresentationOptions; + NSUInteger fullscreenPresentationOptions; + BOOL isFullscreenWindow; int cachedInsets[4]; // l, r, t, b } |