diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-01 18:05:30 +0100 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2014-12-01 18:05:30 +0100 |
commit | 586c9e71554914daf7f60c4610c4ef4e85c274eb (patch) | |
tree | 6a3ff2b90f1a970e0e37d50b2222b3c8588e3201 /video/out/cocoa | |
parent | 1c0920a8dd73105874a6aadcd35bec5814123709 (diff) |
cocoa: allow to black out other display when going fs
fixes #1302
Diffstat (limited to 'video/out/cocoa')
-rw-r--r-- | video/out/cocoa/events_view.m | 2 | ||||
-rw-r--r-- | video/out/cocoa/mpvadapter.h | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/video/out/cocoa/events_view.m b/video/out/cocoa/events_view.m index c3e626b0fe..8e96ac1244 100644 --- a/video/out/cocoa/events_view.m +++ b/video/out/cocoa/events_view.m @@ -67,7 +67,7 @@ popts |= NSApplicationPresentationAutoHideDock; NSDictionary *fsopts = @{ - NSFullScreenModeAllScreens : @NO, + NSFullScreenModeAllScreens : @([self.adapter fsModeAllScreens]), NSFullScreenModeApplicationPresentationOptions : @(popts) }; diff --git a/video/out/cocoa/mpvadapter.h b/video/out/cocoa/mpvadapter.h index 8829abd096..f54c26593f 100644 --- a/video/out/cocoa/mpvadapter.h +++ b/video/out/cocoa/mpvadapter.h @@ -33,5 +33,6 @@ - (BOOL)keyboardEnabled; - (BOOL)mouseEnabled; - (NSScreen *)fsScreen; +- (BOOL)fsModeAllScreens; @property(nonatomic, assign) struct vo *vout; @end |