]> git.sesse.net Git - vlc/commitdiff
Fix main screen detection for the detached window on Mac OS X.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 3 Mar 2007 00:46:25 +0000 (00:46 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 3 Mar 2007 00:46:25 +0000 (00:46 +0000)
modules/gui/macosx/vout.m

index 781533108012b2a4cf5e5377b4d647d5289a191d..2d9b3a1d04b9cc0bd651582cb2ed33d6bb7b7fd8 100644 (file)
@@ -925,8 +925,6 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
         if(!([o_window isFullscreen]))
             [o_window makeKeyAndOrderFront: self];
 
-        NSLog(@"We are %s animating (%s)",  [o_window isVisible] && (![o_window isFullscreen]) ? "" :"not", [o_window isFullscreen] ? "fullscreen" : "");
-
         [self scaleWindowWithFactor: 1.0 animate: [o_window isVisible] && (![o_window isFullscreen])];
     }
     return b_return;
@@ -1001,7 +999,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
     if( !o_screen )
         o_screen = [NSScreen mainScreen];
 
-    if( o_screen == [NSScreen mainScreen] )
+    if( [o_screen isMainScreen] )
         b_menubar_screen = VLC_TRUE;
 
     if( p_vout->b_fullscreen )