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:
1 parent
d2960d2e96
commit
8df712781c
1 file changed
+1
-1
@@ -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];
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user