Skip to content
Snippets Groups Projects
Commit 4c651e39 authored by Ken Thomases's avatar Ken Thomases Committed by Alexandre Julliard
Browse files

winemac: Don't unminimize a window on first activation during start-up.

parent 598ff4dd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment