From bdd096db9a8e70d8c70af4eec80c67d4807173f3 Mon Sep 17 00:00:00 2001 From: Akemi Date: Mon, 20 Feb 2017 17:23:29 +0100 Subject: 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. --- video/out/cocoa_common.m | 2 ++ 1 file changed, 2 insertions(+) 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]; } } -- cgit v1.2.3