We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 4032

Summary: Mac: SDL_PumpEvents hangs after SDL_HideWindow on SDL_WINDOW_FULLSCREEN_DESKTOP window
Product: SDL Reporter: Aleksi Juvani <aleksi>
Component: videoAssignee: Sam Lantinga <slouken>
Status: NEW --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: 2.0.7   
Hardware: x86_64   
OS: macOS 10.13   
Attachments: repro

Description Aleksi Juvani 2018-01-08 14:29:53 UTC
Created attachment 3126 [details]
repro

Calling SDL_HideWindow on a SDL_WINDOW_FULLSCREEN_DESKTOP window will hang the application in SDL_PumpEvents for approximately 60 seconds, and will fail to hide the window properly, causing it to reappear some time later.

It looks like SDL hangs in Cocoa_SetWindowFullscreenSpace while waiting for the fullscreen transition to complete.

I've attached a minimal repro.