Commit 75c8bbcc authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Make sure we don't see a grey flash in float-on-top mode in embedded window.

parent d38a1d80
......@@ -53,6 +53,7 @@
BOOL b_window_is_invisible;
NSSize videoRatio;
NSInteger originalLevel;
}
- (void)controlTintChanged;
......
......@@ -245,6 +245,10 @@
if( blackout_other_displays )
[screen blackoutOtherScreens];
/* Make sure we don't see the window flashes in float-on-top mode */
originalLevel = [self level];
[self setLevel:NSNormalWindowLevel];
/* Only create the o_fullscreen_window if we are not in the middle of the zooming animation */
if (!o_fullscreen_window)
{
......@@ -506,6 +510,8 @@
[o_fullscreen_window release];
o_fullscreen_window = nil;
[self setLevel:originalLevel];
[self unlockFullscreenAnimation];
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment