]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/embeddedwindow.m
macosx: Make sure we don't see a grey flash in float-on-top mode in embedded window.
[vlc] / modules / gui / macosx / embeddedwindow.m
index 5fceaa999635c2d6a392bd86ae895a08ac656000..a4d98e8d7c342421f8e702e1dd8f504059046721 100644 (file)
     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)
     {
 
     [o_fullscreen_window release];
     o_fullscreen_window = nil;
+    [self setLevel:originalLevel];
+
     [self unlockFullscreenAnimation];
 }