]> git.sesse.net Git - vlc/commitdiff
macosx: reset float-on-top when native fullscreen has already finished
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sat, 9 Nov 2013 16:22:00 +0000 (17:22 +0100)
committerDavid Fuhrmann <david.fuhrmann@googlemail.com>
Sun, 10 Nov 2013 11:09:50 +0000 (12:09 +0100)
This fixes issues where video window just disappears when exiting fullscreen,
only on Mavericks.

close #9814

modules/gui/macosx/Windows.m

index 2e06f028f34bd237b1c5151643db9729ecd5374d..a9fa222f7acd5a886a9e27ef8dc8804935a77869 100644 (file)
     [NSCursor setHiddenUntilMouseMoves: NO];
     [[[VLCMainWindow sharedInstance] fsPanel] setNonActive: nil];
 
-    [[[VLCMain sharedInstance] voutController] updateWindowLevelForHelperWindows: i_originalLevel];
-    [self setLevel:i_originalLevel];
 
     if (b_dark_interface) {
         NSRect winrect;
     [self setMovableByWindowBackground: YES];
 }
 
+- (void)windowDidExitFullScreen:(NSNotification *)notification
+{
+    [[[VLCMain sharedInstance] voutController] updateWindowLevelForHelperWindows: i_originalLevel];
+    [self setLevel:i_originalLevel];
+}
+
 #pragma mark -
 #pragma mark Fullscreen Logic