]> git.sesse.net Git - vlc/commitdiff
macosx: Don't attempt to close the window in fullscreen.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 8 Jul 2008 00:38:44 +0000 (02:38 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 8 Jul 2008 00:38:44 +0000 (02:38 +0200)
modules/gui/macosx/vout.m

index dfc756be681df0097963482ddabab013a256e051..883040988faea1c5b59c5aa9df1ea1d13e514fdb 100644 (file)
@@ -991,7 +991,8 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
     /* Don't close the window yet, wait a bit to see if a new input is poping up */
     /* FIXME: Probably fade the window In and Out */
     /* FIXME: fix core */
-    [o_window performSelector:@selector(orderOut:) withObject:nil afterDelay:1.5];
+    if(![self isFullscreen])
+        [o_window performSelector:@selector(orderOut:) withObject:nil afterDelay:1.5];
 
     [super closeVout];
 }