]> git.sesse.net Git - vlc/commitdiff
* windows -> orderedWindows. Finally window commands like fullscreen, half size
authorDerk-Jan Hartman <hartman@videolan.org>
Thu, 20 Nov 2003 14:39:31 +0000 (14:39 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Thu, 20 Nov 2003 14:39:31 +0000 (14:39 +0000)
  double size and float on top are sent to the correct window.

modules/gui/macosx/controls.m
modules/gui/macosx/intf.m

index 71f9877e07cace0250f68b0d4ae2033504ff3677..8ec9d5893a395a39bc5189f9babadb7ef9903da3 100644 (file)
@@ -2,7 +2,7 @@
  * controls.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: controls.m,v 1.55 2003/11/19 19:00:16 bigben Exp $
+ * $Id: controls.m,v 1.56 2003/11/20 14:39:30 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
 {
     id o_window = [NSApp keyWindow];
     NSString *o_title = [sender title];
-    NSArray *o_windows = [NSApp windows];
+    NSArray *o_windows = [NSApp orderedWindows];
     NSEnumerator *o_enumerator = [o_windows objectEnumerator];
     vout_thread_t   *p_vout = vlc_object_find( [NSApp getIntf], VLC_OBJECT_VOUT,
                                               FIND_ANYWHERE );
                 [[o_mi title] isEqualToString: _NS("Float On Top")] )
     {
         id o_window;
-        NSArray *o_windows = [NSApp windows];
+        NSArray *o_windows = [NSApp orderedWindows];
         NSEnumerator *o_enumerator = [o_windows objectEnumerator];
         bEnabled = FALSE;
         
index 5169d1715a9dddba5b18fc25a67e2a3b323a8be7..8a4b85bd912f073e6f3b53a3238cdec3e8459a8a 100644 (file)
@@ -2,7 +2,7 @@
  * intf.m: MacOS X interface plugin
  *****************************************************************************
  * Copyright (C) 2002-2003 VideoLAN
- * $Id: intf.m,v 1.101 2003/11/15 22:42:16 hartman Exp $
+ * $Id: intf.m,v 1.102 2003/11/20 14:39:31 hartman Exp $
  *
  * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
  *          Christophe Massiot <massiot@via.ecp.fr>
@@ -698,7 +698,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
         if( p_vout != NULL )
         {
             id o_vout_wnd;
-            NSEnumerator * o_enum = [[NSApp windows] objectEnumerator];
+            NSEnumerator * o_enum = [[NSApp orderedWindows] objectEnumerator];
             
             while( ( o_vout_wnd = [o_enum nextObject] ) )
             {