mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
Mac: Fix restoring of Cmd-H-hidden fullscreen desktop windows.
This should fix http://bugzilla.libsdl.org/show_bug.cgi?id=1996
This commit is contained in:
parent
932a87582e
commit
53e84315bb
1 changed files with 5 additions and 3 deletions
|
|
@ -1047,9 +1047,11 @@ Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display
|
|||
[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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue