winemac: Don't let child (owned) windows be Cocoa primary full-screen windows.
They shouldn't get a separate space; they should stick with their parent (owner). Signed-off-by: Ken Thomases <ken@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ff3766c759
commit
e0ef30e542
|
@ -978,7 +978,8 @@ - (void) adjustFullScreenBehavior:(NSWindowCollectionBehavior)behavior
|
||||||
NSUInteger style = [self styleMask];
|
NSUInteger style = [self styleMask];
|
||||||
|
|
||||||
if (behavior & NSWindowCollectionBehaviorParticipatesInCycle &&
|
if (behavior & NSWindowCollectionBehaviorParticipatesInCycle &&
|
||||||
style & NSResizableWindowMask && !(style & NSUtilityWindowMask) && !maximized)
|
style & NSResizableWindowMask && !(style & NSUtilityWindowMask) && !maximized &&
|
||||||
|
!(self.parentWindow || self.latentParentWindow))
|
||||||
{
|
{
|
||||||
behavior |= NSWindowCollectionBehaviorFullScreenPrimary;
|
behavior |= NSWindowCollectionBehaviorFullScreenPrimary;
|
||||||
behavior &= ~NSWindowCollectionBehaviorFullScreenAuxiliary;
|
behavior &= ~NSWindowCollectionBehaviorFullScreenAuxiliary;
|
||||||
|
@ -1839,6 +1840,7 @@ - (void) setMacDrvParentWindow:(WineWindow*)parent
|
||||||
[latentParentWindow removeChildWineWindow:self];
|
[latentParentWindow removeChildWineWindow:self];
|
||||||
if ([parent addChildWineWindow:self])
|
if ([parent addChildWineWindow:self])
|
||||||
[[WineApplicationController sharedController] adjustWindowLevels];
|
[[WineApplicationController sharedController] adjustWindowLevels];
|
||||||
|
[self adjustFullScreenBehavior:[self collectionBehavior]];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue