summaryrefslogtreecommitdiffstats
path: root/video/out/cocoa/window.m
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/cocoa/window.m')
-rw-r--r--video/out/cocoa/window.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/video/out/cocoa/window.m b/video/out/cocoa/window.m
index 028b17985f..88b1596d40 100644
--- a/video/out/cocoa/window.m
+++ b/video/out/cocoa/window.m
@@ -168,14 +168,15 @@
- (void)windowDidChangeScreen:(NSNotification *)notification
{
- //this event doesn't exclusively trigger on screen change
- //examples: screen reconfigure, toggling fullscreen
+ [self.adapter windowDidChangeScreen:notification];
+
if (!_is_animating && ![[self currentScreen] isEqual:[self screen]]) {
self.previousScreen = [self screen];
}
if (![[self currentScreen] isEqual:[self screen]]) {
- [self.adapter windowDidChangeScreen:notification];
+ [self.adapter windowDidChangePhysicalScreen];
}
+
self.currentScreen = [self screen];
}