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 770469bf38..aae6582dde 100644
--- a/video/out/cocoa/window.m
+++ b/video/out/cocoa/window.m
@@ -299,11 +299,12 @@
- (NSRect)constrainFrameRect:(NSRect)nf toScreen:(NSScreen *)screen
{
- if (_is_animating)
- screen = [self targetScreen];
+ if (_is_animating && ![self.adapter isInFullScreenMode])
+ return nf;
+ screen = screen ?: self.screen ?: [NSScreen mainScreen];
NSRect of = [self frame];
- NSRect vf = [screen ?: self.screen ?: [NSScreen mainScreen] visibleFrame];
+ NSRect vf = [_is_animating ? [self targetScreen] : screen visibleFrame];
NSRect ncf = [self contentRectForFrameRect:nf];
// Prevent the window's titlebar from exiting the screen on the top edge.