0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 12:02:23 +02:00

cocoa_common: add support for --no-border

Draw a window with style NSBorderlessWindow when the user uses `--no-border`.
This commit is contained in:
Stefano Pigozzi 2012-12-31 14:20:49 +01:00
parent 56e18d99aa
commit 59868da7a1

View File

@ -136,6 +136,7 @@ static struct vo_cocoa_state *vo_cocoa_init_state(struct vo *vo)
.cursor_autohide_delay = vo->opts->cursor_autohide_delay,
.power_mgmt_assertion = kIOPMNullAssertionID,
};
if (!vo_border) s->windowed_mask = NSBorderlessWindowMask;
return s;
}