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.
oldstable
Ken Thomases 2013-05-16 18:43:50 -05:00 committed by Alexandre Julliard
parent ef874a8eaa
commit c8d4b1cc5e
1 changed files with 9 additions and 1 deletions

View File

@ -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