Skip to content

x11: Don't block when withdrawing unmapped windows#16005

Merged
Kontrabant merged 1 commit into
libsdl-org:mainfrom
Kontrabant:x11_unmap_hidden
Jul 15, 2026
Merged

x11: Don't block when withdrawing unmapped windows#16005
Kontrabant merged 1 commit into
libsdl-org:mainfrom
Kontrabant:x11_unmap_hidden

Conversation

@Kontrabant

@Kontrabant Kontrabant commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Some window managers will mark minimized or offscreen windows as unmapped. When hiding a window, unconditionally call XWithdrawWindow, and don't wait for an UnmapNotify event if the window is already in the unmapped state, or it will block indefinitely waiting for an event that never arrives.

Fixes #15977

Some window managers will mark minimized or offscreen windows as unmapped. When hiding a window, unconditionally call XWithdrawWindow, and don't wait for an UnmapNotify event if the window is already in the unmapped state, or it will block indefinitely waiting for an event that never arrives.
@Kontrabant
Kontrabant merged commit e442a9a into libsdl-org:main Jul 15, 2026
10 checks passed
@Kontrabant
Kontrabant deleted the x11_unmap_hidden branch July 15, 2026 16:05
@Kontrabant

Copy link
Copy Markdown
Contributor Author

Cherry-picked as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SDL_HideWindow doesn't work on X11

1 participant