summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorHerbert Dürr <hdu@apache.org>2013-01-18 11:28:03 +0000
committerHerbert Dürr <hdu@apache.org>2013-01-18 11:28:03 +0000
commit1b8988f7eefd5ec0d70abd6f83b2cd7197ca5935 (patch)
treed7a29335bee0a802c443711e10b1fcbfc825992a /vcl
parentc48e84dd084ab687fef8574a2c52b86d20fe724d (diff)
#i119006# disable OSX>=10.7 window restoration until we support it directly
Notes
Notes: merged as: 4f3d79c1f54fb998119a099bad629804ad01eb36
Diffstat (limited to 'vcl')
-rw-r--r--vcl/aqua/source/window/salframeview.mm6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/aqua/source/window/salframeview.mm b/vcl/aqua/source/window/salframeview.mm
index d82cc2df77aa..d0564362c754 100644
--- a/vcl/aqua/source/window/salframeview.mm
+++ b/vcl/aqua/source/window/salframeview.mm
@@ -162,6 +162,7 @@ static AquaSalFrame* getMouseContainerFrame()
NSWindow* pNSWindow = [super initWithContentRect: aRect styleMask: mpFrame->getStyleMask() backing: NSBackingStoreBuffered defer: NO ];
[pNSWindow useOptimizedDrawing: YES]; // OSX recommendation when there are no overlapping subviews within the receiver
+ // enable OSX>=10.7 fullscreen options if available and useful
bool bAllowFullScreen = (0 == (mpFrame->mnStyle & (SAL_FRAME_STYLE_DIALOG | SAL_FRAME_STYLE_TOOLTIP | SAL_FRAME_STYLE_SYSTEMCHILD | SAL_FRAME_STYLE_FLOAT | SAL_FRAME_STYLE_TOOLWINDOW | SAL_FRAME_STYLE_INTRO)));
bAllowFullScreen &= (0 == (~mpFrame->mnStyle & (SAL_FRAME_STYLE_SIZEABLE)));
bAllowFullScreen &= (mpFrame->mpParent == NULL);
@@ -172,6 +173,11 @@ static AquaSalFrame* getMouseContainerFrame()
[pNSWindow performSelector:setCollectionBehavior withObject:bMode];
}
+ // disable OSX>=10.7 window restoration until we support it directly
+ const SEL setRestorable = @selector(setRestorable:);
+ if( [pNSWindow respondsToSelector: setRestorable])
+ [pNSWindow performSelector:setRestorable withObject:NO];
+
return pNSWindow;
}