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 5025

Summary: Closing window in full screen mode leaves empty desktop
Product: SDL Reporter: gomi2003
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: ASSIGNED --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 Keywords: target-2.0.16
Version: don't know   
Hardware: x86   
OS: macOS 10.15   
Attachments: Screen grab of mission control with a blank desktop, showing the minimize button.

Description gomi2003 2020-03-11 18:03:33 UTC
Created attachment 4248 [details]
Screen grab of mission control with a blank desktop, showing the minimize button.

In the game Factorio, the following triggers the bug I'm describing:
- Start application
- Put application in full screen mode
- Perform updates. This will close the window and open a new one.

Result: The window that was closed leaves a blank (= black) desktop behind in macOS mission control. macOS behaves a bit strange when you try to activate this desktop. This was reported on their forum (https://forums.factorio.com/viewtopic.php?f=48&t=70191), but they replied that it's an SDL bug/problem.

Expected behaviour: the desktop should be removed the moment the window is closed.

Work around: When the application is closed, the empty desktop(s) disappear as well. Also it is possible to minimize the blank desktops from mission control, which will also cause them to cease to exist.

Note: Since I'm not the developer I don't know the version of SDL, but of course I expect it's the most recent stable release.