diff options
author | Akemi <der.richter@gmx.de> | 2017-07-27 21:28:33 +0200 |
---|---|---|
committer | Akemi <der.richter@gmx.de> | 2017-08-06 22:48:26 +0200 |
commit | f550fdaa91293fa1dd125b5743728c1d387d21c4 (patch) | |
tree | 5c506fbb24dc5421abf5f983019c98bcacd68e34 /video/out/cocoa_common.m | |
parent | 2b83f7e391ab68b23602e89b97ebc07ca09d8e7c (diff) | |
download | mpv-f550fdaa91293fa1dd125b5743728c1d387d21c4.tar.bz2 mpv-f550fdaa91293fa1dd125b5743728c1d387d21c4.tar.xz |
cocoa: add an option to disable the native macOS fullscreen
Fixes #4014
Diffstat (limited to 'video/out/cocoa_common.m')
-rw-r--r-- | video/out/cocoa_common.m | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/video/out/cocoa_common.m b/video/out/cocoa_common.m index 56cfd221d8..b535de279d 100644 --- a/video/out/cocoa_common.m +++ b/video/out/cocoa_common.m @@ -1014,6 +1014,11 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg) return self.vout->cocoa->fullscreen; } +- (BOOL)wantsNativeFullscreen +{ + return self.vout->opts->native_fs; +} + - (NSScreen *)getTargetScreen { struct vo_cocoa_state *s = self.vout->cocoa; @@ -1039,7 +1044,7 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg) flag_events(self.vout, VO_EVENT_WIN_STATE); } -- (void)windowDidEnterFullScreen:(NSNotification *)notification +- (void)windowDidEnterFullScreen { struct vo_cocoa_state *s = self.vout->cocoa; s->fullscreen = 1; @@ -1047,7 +1052,7 @@ int vo_cocoa_control(struct vo *vo, int *events, int request, void *arg) vo_cocoa_anim_unlock(self.vout); } -- (void)windowDidExitFullScreen:(NSNotification *)notification +- (void)windowDidExitFullScreen { struct vo_cocoa_state *s = self.vout->cocoa; s->fullscreen = 0; |