src/video/cocoa/SDL_cocoawindow.m
changeset 9419 9763f689bced
parent 9237 2cc90bb31777
child 9474 067b78126485
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Sat Mar 21 22:42:53 2015 +0100
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Sun Mar 22 01:25:12 2015 -0400
     1.3 @@ -374,7 +374,6 @@
     1.4      NSNotificationCenter *center;
     1.5      NSWindow *window = _data->nswindow;
     1.6      NSView *view = [window contentView];
     1.7 -    NSArray *windows = nil;
     1.8  
     1.9      center = [NSNotificationCenter defaultCenter];
    1.10  
    1.11 @@ -402,25 +401,6 @@
    1.12      if ([view nextResponder] == self) {
    1.13          [view setNextResponder:nil];
    1.14      }
    1.15 -
    1.16 -    /* Make the next window in the z-order Key. If we weren't the foreground
    1.17 -       when closed, this is a no-op.
    1.18 -       !!! FIXME: Note that this is a hack, and there are corner cases where
    1.19 -       !!! FIXME:  this fails (such as the About box). The typical nib+RunLoop
    1.20 -       !!! FIXME:  handles this for Cocoa apps, but we bypass all that in SDL.
    1.21 -       !!! FIXME:  We should remove this code when we find a better way to
    1.22 -       !!! FIXME:  have the system do this for us. See discussion in
    1.23 -       !!! FIXME:   http://bugzilla.libsdl.org/show_bug.cgi?id=1825
    1.24 -    */
    1.25 -    windows = [NSApp orderedWindows];
    1.26 -    for (NSWindow *win in windows) {
    1.27 -        if (win == window) {
    1.28 -            continue;
    1.29 -        }
    1.30 -
    1.31 -        [win makeKeyAndOrderFront:self];
    1.32 -        break;
    1.33 -    }
    1.34  }
    1.35  
    1.36  - (BOOL)isMoving