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:
parent
56e18d99aa
commit
59868da7a1
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user