Skip to content

Commit

Permalink
Mac: Fix restoring of Cmd-H-hidden fullscreen desktop windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgenpt committed Aug 12, 2013
1 parent a84a97f commit 14bf230
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -1047,9 +1047,11 @@ - (void)resetCursorRects
[nswindow setLevel:kCGNormalWindowLevel];
}

[data->listener pauseVisibleObservation];
[nswindow makeKeyAndOrderFront:nil];
[data->listener resumeVisibleObservation];
if ([nswindow isVisible] || fullscreen) {
[data->listener pauseVisibleObservation];
[nswindow makeKeyAndOrderFront:nil];
[data->listener resumeVisibleObservation];
}

ScheduleContextUpdates(data);

Expand Down

0 comments on commit 14bf230

Please sign in to comment.