Commit 2c54b61a authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* windows -> orderedWindows. Finally window commands like fullscreen, half size

  double size and float on top are sent to the correct window.
parent f850c3ca
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* controls.m: MacOS X interface plugin * controls.m: MacOS X interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * 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> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
...@@ -331,7 +331,7 @@ ...@@ -331,7 +331,7 @@
{ {
id o_window = [NSApp keyWindow]; id o_window = [NSApp keyWindow];
NSString *o_title = [sender title]; NSString *o_title = [sender title];
NSArray *o_windows = [NSApp windows]; NSArray *o_windows = [NSApp orderedWindows];
NSEnumerator *o_enumerator = [o_windows objectEnumerator]; NSEnumerator *o_enumerator = [o_windows objectEnumerator];
vout_thread_t *p_vout = vlc_object_find( [NSApp getIntf], VLC_OBJECT_VOUT, vout_thread_t *p_vout = vlc_object_find( [NSApp getIntf], VLC_OBJECT_VOUT,
FIND_ANYWHERE ); FIND_ANYWHERE );
...@@ -707,7 +707,7 @@ ...@@ -707,7 +707,7 @@
[[o_mi title] isEqualToString: _NS("Float On Top")] ) [[o_mi title] isEqualToString: _NS("Float On Top")] )
{ {
id o_window; id o_window;
NSArray *o_windows = [NSApp windows]; NSArray *o_windows = [NSApp orderedWindows];
NSEnumerator *o_enumerator = [o_windows objectEnumerator]; NSEnumerator *o_enumerator = [o_windows objectEnumerator];
bEnabled = FALSE; bEnabled = FALSE;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* intf.m: MacOS X interface plugin * intf.m: MacOS X interface plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2002-2003 VideoLAN * 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> * Authors: Jon Lech Johansen <jon-vl@nanocrew.net>
* Christophe Massiot <massiot@via.ecp.fr> * Christophe Massiot <massiot@via.ecp.fr>
...@@ -698,7 +698,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key ) ...@@ -698,7 +698,7 @@ unsigned int VLCModifiersToCocoa( unsigned int i_key )
if( p_vout != NULL ) if( p_vout != NULL )
{ {
id o_vout_wnd; id o_vout_wnd;
NSEnumerator * o_enum = [[NSApp windows] objectEnumerator]; NSEnumerator * o_enum = [[NSApp orderedWindows] objectEnumerator];
while( ( o_vout_wnd = [o_enum nextObject] ) ) while( ( o_vout_wnd = [o_enum nextObject] ) )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment