Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

Added a FIXME discussion to last commit.

  • Loading branch information
icculus committed Jul 27, 2013
1 parent 5c27dc7 commit 8e91cdb455ae66b07f2b8fdaf9793bfd0faa4769
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/video/cocoa/SDL_cocoawindow.m
@@ -158,7 +158,14 @@ - (void)close

/* Make the next window in the z-order Key. If we weren't the foreground
when closed, this is a no-op. */
when closed, this is a no-op.
!!! FIXME: Note that this is a hack, and there are corner cases where
!!! FIXME: this fails (such as the About box). The typical nib+RunLoop
!!! FIXME: handles this for Cocoa apps, but we bypass all that in SDL.
!!! FIXME: We should remove this code when we find a better way to
!!! FIXME: have the system do this for us. See discussion in
!!! FIXME:
windows = [NSApp orderedWindows];
if ([windows count] > 0) {
NSWindow *win = (NSWindow *) [windows objectAtIndex:0];

0 comments on commit 8e91cdb

Please sign in to comment.