Skip to content
Permalink
Browse files

Mac: Fix restoring of Cmd-H-hidden fullscreen desktop windows.

  • Loading branch information
jorgenpt committed Aug 12, 2013
1 parent a84a97f commit 14bf230d76a1eae6b6ea54a938a991a9f2632750
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/video/cocoa/SDL_cocoawindow.m
@@ -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);

0 comments on commit 14bf230

Please sign in to comment.