Kaydet (Commit) 1b8988f7 authored tarafından Herbert Dürr's avatar Herbert Dürr

#i119006# disable OSX>=10.7 window restoration until we support it directly

üst c48e84dd
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment