mirror of
https://github.com/reactos/wine.git
synced 2025-02-20 12:50:53 +00:00
winemac: Order front in -makeKeyAndOrderFront:; we only override to control key status.
When we have windows on two different spaces and the user switches between them by clicking our Dock icon, Cocoa inexplicably sends the switched-to window to the back of the z-order. It's only -makeKeyAndOrderFront: that brings it forward again, but our override broke that.
This commit is contained in:
parent
ef874a8eaa
commit
c8d4b1cc5e
@ -1051,8 +1051,16 @@ static inline void fix_generic_modifiers_by_device(NSUInteger* modifiers)
|
||||
/* We don't call this. It's the action method of the items in the Window menu. */
|
||||
- (void) makeKeyAndOrderFront:(id)sender
|
||||
{
|
||||
WineApplicationController* controller = [WineApplicationController sharedController];
|
||||
WineWindow* front = [controller frontWineWindow];
|
||||
|
||||
if (![self isKeyWindow] && !self.disabled && !self.noActivate)
|
||||
[[WineApplicationController sharedController] windowGotFocus:self];
|
||||
[controller windowGotFocus:self];
|
||||
|
||||
if (front && [self level] < [front level])
|
||||
[self setLevel:[front level]];
|
||||
[self orderFront:nil];
|
||||
[controller adjustWindowLevels];
|
||||
}
|
||||
|
||||
- (void) sendEvent:(NSEvent*)event
|
||||
|
Loading…
x
Reference in New Issue
Block a user