[vlc-devel] commit: macosx: Don't attempt to close the window in fullscreen. (Pierre d' Herbemont )

git version control git at videolan.org
Tue Jul 8 02:36:37 CEST 2008


vlc | branch: master | Pierre d'Herbemont <pdherbemont at videolan.org> | Tue Jul  8 02:38:44 2008 +0200| [03a1a92155013ac0312100a2ba7dda6de3eb244c]

macosx: Don't attempt to close the window in fullscreen.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=03a1a92155013ac0312100a2ba7dda6de3eb244c
---

 modules/gui/macosx/vout.m |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index dfc756b..8830409 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -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];
 }




More information about the vlc-devel mailing list