[vlc-commits] macosx: reset float-on-top when native fullscreen has already finished

David Fuhrmann git at videolan.org
Sun Nov 10 12:13:09 CET 2013


vlc/vlc-2.1 | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Sat Nov  9 17:22:00 2013 +0100| [7d89a358ee2117d6f6ece9fdccd7a3f4e0318503] | committer: David Fuhrmann

macosx: reset float-on-top when native fullscreen has already finished

This fixes issues where video window just disappears when exiting fullscreen,
only on Mavericks.

close #9814
(cherry picked from commit e062d7c8b5480d7794b2d009a3dcf2631792a97a)

Signed-off-by: David Fuhrmann <david.fuhrmann at googlemail.com>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=7d89a358ee2117d6f6ece9fdccd7a3f4e0318503
---

 modules/gui/macosx/Windows.m |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/modules/gui/macosx/Windows.m b/modules/gui/macosx/Windows.m
index 2e06f02..a9fa222 100644
--- a/modules/gui/macosx/Windows.m
+++ b/modules/gui/macosx/Windows.m
@@ -693,8 +693,6 @@
     [NSCursor setHiddenUntilMouseMoves: NO];
     [[[VLCMainWindow sharedInstance] fsPanel] setNonActive: nil];
 
-    [[[VLCMain sharedInstance] voutController] updateWindowLevelForHelperWindows: i_originalLevel];
-    [self setLevel:i_originalLevel];
 
     if (b_dark_interface) {
         NSRect winrect;
@@ -725,6 +723,12 @@
     [self setMovableByWindowBackground: YES];
 }
 
+- (void)windowDidExitFullScreen:(NSNotification *)notification
+{
+    [[[VLCMain sharedInstance] voutController] updateWindowLevelForHelperWindows: i_originalLevel];
+    [self setLevel:i_originalLevel];
+}
+
 #pragma mark -
 #pragma mark Fullscreen Logic
 



More information about the vlc-commits mailing list