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 - Mac: SDL_PumpEvents hangs after SDL_HideWindow on SDL_WINDOW_FULLSCREEN_DESKTOP window
Summary: Mac: SDL_PumpEvents hangs after SDL_HideWindow on SDL_WINDOW_FULLSCREEN_DESKT...
Status: NEW
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 2.0.7
Hardware: x86_64 macOS 10.13
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-08 14:29 UTC by Aleksi Juvani
Modified: 2018-02-11 08:47 UTC (History)
1 user (show)

See Also:


Attachments
repro (1.47 KB, text/x-csrc)
2018-01-08 14:29 UTC, Aleksi Juvani
Details

Note You need to log in before you can comment on or make changes to this bug.
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.