mirror of
https://github.com/mpv-player/mpv
synced 2025-02-15 19:47:32 +00:00
cocoa: make window draggable on init
fixes the case when mpv is opened and the cursor is within the window bounds without moving the mouse. previously the window could only be dragged around after the first mouse movement.
This commit is contained in:
parent
5519d0dde4
commit
bdd096db9a
@ -591,6 +591,8 @@ static void create_ui(struct vo *vo, struct mp_rect *win, int geo_flags)
|
||||
[s->window setRestorable:NO];
|
||||
[s->window makeMainWindow];
|
||||
[s->window makeKeyAndOrderFront:nil];
|
||||
if (!opts->fullscreen)
|
||||
[s->window setMovableByWindowBackground:YES];
|
||||
[NSApp activateIgnoringOtherApps:YES];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user