mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-27 13:58:08 +08:00
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:
@@ -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