diff options
author | Akemi <der.richter@gmx.de> | 2017-02-20 17:23:29 +0100 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2017-02-20 17:25:42 +0100 |
commit | bdd096db9a8e70d8c70af4eec80c67d4807173f3 (patch) | |
tree | 426db3ac87d0579bda8fbb07fc1b96772c860dc6 /video/out | |
parent | 5519d0dde4eac9ed46d253b130914b7130395a47 (diff) | |
download | mpv-bdd096db9a8e70d8c70af4eec80c67d4807173f3.tar.bz2 mpv-bdd096db9a8e70d8c70af4eec80c67d4807173f3.tar.xz |
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.
Diffstat (limited to 'video/out')
-rw-r--r-- | video/out/cocoa_common.m | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 069e16f9bd..cbadcf2d94 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -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]; } } |