src/video/cocoa/SDL_cocoawindow.m
changeset 7636 d5167d0818b3
parent 7595 ede2237fcebf
child 7740 415bb39617a1
child 8727 6b4f9d40414b
     1.1 --- a/src/video/cocoa/SDL_cocoawindow.m	Mon Aug 12 08:45:37 2013 -0700
     1.2 +++ b/src/video/cocoa/SDL_cocoawindow.m	Mon Aug 12 11:09:13 2013 -0700
     1.3 @@ -1047,9 +1047,11 @@
     1.4          [nswindow setLevel:kCGNormalWindowLevel];
     1.5      }
     1.6  
     1.7 -    [data->listener pauseVisibleObservation];
     1.8 -    [nswindow makeKeyAndOrderFront:nil];
     1.9 -    [data->listener resumeVisibleObservation];
    1.10 +    if ([nswindow isVisible] || fullscreen) {
    1.11 +        [data->listener pauseVisibleObservation];
    1.12 +        [nswindow makeKeyAndOrderFront:nil];
    1.13 +        [data->listener resumeVisibleObservation];
    1.14 +    }
    1.15  
    1.16      ScheduleContextUpdates(data);
    1.17