winemac: Don't unminimize a window on first activation during start-up.
This commit is contained in:
parent
598ff4dd5a
commit
4c651e39e4
|
@ -81,6 +81,8 @@ @interface WineApplicationController : NSObject <NSApplicationDelegate>
|
|||
NSTimeInterval lastEventTapEventTime;
|
||||
|
||||
NSImage* applicationIcon;
|
||||
|
||||
BOOL beenActive;
|
||||
}
|
||||
|
||||
@property (nonatomic) CGEventSourceKeyboardType keyboardType;
|
||||
|
|
|
@ -1707,7 +1707,7 @@ - (void)applicationDidBecomeActive:(NSNotification *)notification
|
|||
|
||||
[self adjustWindowLevels:YES];
|
||||
|
||||
if (![self frontWineWindow])
|
||||
if (beenActive && ![self frontWineWindow])
|
||||
{
|
||||
for (WineWindow* window in [NSApp windows])
|
||||
{
|
||||
|
@ -1718,6 +1718,7 @@ - (void)applicationDidBecomeActive:(NSNotification *)notification
|
|||
}
|
||||
}
|
||||
}
|
||||
beenActive = TRUE;
|
||||
|
||||
// If a Wine process terminates abruptly while it has the display captured
|
||||
// and switched to a different resolution, Mac OS X will uncapture the
|
||||
|
|
Loading…
Reference in New Issue