mirror of
https://github.com/mpv-player/mpv
synced 2025-02-19 22:36:55 +00: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:
parent
d2960d2e96
commit
8df712781c
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user