Skip to content

WaylandBackend: only await a configure after a real unmap - #2440

Merged
matte-schwartz merged 1 commit into
masterfrom
matts/unmapped-wait-fix
Sep 27, 2026
Merged

matte-schwartz merged 1 commit into
masterfrom
matts/unmapped-wait-fix

Conversation

@matte-schwartz

Copy link
Copy Markdown
Collaborator

c50ddfa made every NULL attach on the toplevel skip attaches until the next configure. But a NULL attach only unmaps a surface that already has a buffer. If the toplevel was never mapped, the compositor has nothing to reconfigure, so the configure never comes and gamescope never shows a frame. Launching from Steam hits this every time as focus flaps during startup, so the window is hidden before its first frame.

Only wait for a configure if the toplevel had a buffer when the NULL buffer was attached.

Closes: #2439

c50ddfa made every NULL attach on the toplevel skip attaches until
the next configure. But a NULL attach only unmaps a surface that
already has a buffer. If the toplevel was never mapped, the compositor
has nothing to reconfigure, so the configure never comes and gamescope
never shows a frame. Launching from Steam hits this every time as focus
flaps during startup, so the window is hidden before its first frame.

Only wait for a configure if the toplevel had a buffer when the NULL
buffer was attached.

Closes: #2439
@connormclaud

Copy link
Copy Markdown

I tested it locally and it indeed fixes "no game window" issue

@matte-schwartz
matte-schwartz merged commit 6867f50 into master Sep 27, 2026
1 check passed
@matte-schwartz
matte-schwartz deleted the matts/unmapped-wait-fix branch September 27, 2026 14:37
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.

GameScope 3.16.30 produces no game window

2 participants