mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-15 06:16:00 +00:00
cocoa: Clear the pending flags on non-spaces fullscreen transitions
Transitions to or from a non-spaces fullscreen state are synchronous, so clear both the enter and leave pending flags when changing the state.
This commit is contained in:
@@ -2741,7 +2741,8 @@ SDL_FullscreenResult Cocoa_SetWindowFullscreen(SDL_VideoDevice *_this, SDL_Windo
|
||||
NSWindow *nswindow = data.nswindow;
|
||||
NSRect rect;
|
||||
|
||||
[data.listener clearPendingWindowOperation:PENDING_OPERATION_ENTER_FULLSCREEN];
|
||||
// This is a synchronous operation, so always clear the pending flags.
|
||||
[data.listener clearPendingWindowOperation:PENDING_OPERATION_ENTER_FULLSCREEN | PENDING_OPERATION_LEAVE_FULLSCREEN];
|
||||
|
||||
// The view responder chain gets messed with during setStyleMask
|
||||
if ([data.sdlContentView nextResponder] == data.listener) {
|
||||
|
Reference in New Issue
Block a user