cocoa_common: order front window only when invisible

Window creation code always made mpv the front window. Fix it to make it front
only if the window is currently invisible.

Fixes #84
This commit is contained in:
Stefano Pigozzi
2013-05-13 23:49:00 +02:00
parent d2960d2e96
commit 8df712781c
+1 -1
View File
@@ -529,7 +529,7 @@ int vo_cocoa_config_window(struct vo *vo, uint32_t d_width,
if (flags & VOFLAG_HIDDEN) {
[s->window orderOut:nil];
} else {
} else if (![s->window isVisible]) {
[s->window makeKeyAndOrderFront:nil];
[NSApp activateIgnoringOtherApps:YES];
}