mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2025-01-26 12:59:18 +01: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
a84a97fe85
commit
14bf230d76
@ -1047,9 +1047,11 @@ Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display
|
|||||||
[nswindow setLevel:kCGNormalWindowLevel];
|
[nswindow setLevel:kCGNormalWindowLevel];
|
||||||
}
|
}
|
||||||
|
|
||||||
[data->listener pauseVisibleObservation];
|
if ([nswindow isVisible] || fullscreen) {
|
||||||
[nswindow makeKeyAndOrderFront:nil];
|
[data->listener pauseVisibleObservation];
|
||||||
[data->listener resumeVisibleObservation];
|
[nswindow makeKeyAndOrderFront:nil];
|
||||||
|
[data->listener resumeVisibleObservation];
|
||||||
|
}
|
||||||
|
|
||||||
ScheduleContextUpdates(data);
|
ScheduleContextUpdates(data);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user