Skip to content

Wayland: Only handle the current output mode#116236

Merged
Repiteo merged 1 commit into
godotengine:masterfrom
deralmas:the-chosen-one
Feb 16, 2026
Merged

Wayland: Only handle the current output mode#116236
Repiteo merged 1 commit into
godotengine:masterfrom
deralmas:the-chosen-one

Conversation

@deralmas
Copy link
Copy Markdown
Member

@deralmas deralmas commented Feb 13, 2026

Fixes #115369.

Some compositors (e.g. COSMIC) can report all supported output modes, not just the current mode. This is valid, albeit deprecated, so let's add a check and ignore any non-current output events.


This meant that, on certain compositors, screen_get_size could return the wrong size, even really tiny stuff like 640x480. That said, even with this fix, the way we handle screens is still a hack and we should not depend on them in the long term.

Some compositors (e.g. COSMIC) can report *all* supported output modes,
not just the current mode. This is valid, albeit deprecated, so let's
add a check and ignore any non-current output events.
@akien-mga akien-mga added the cherrypick:4.6 Considered for cherry-picking into a future 4.6.x release label Feb 16, 2026
@Repiteo Repiteo merged commit 41f4ca3 into godotengine:master Feb 16, 2026
20 checks passed
@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Feb 16, 2026

Thanks!

@Repiteo
Copy link
Copy Markdown
Contributor

Repiteo commented Feb 20, 2026

Cherry-picked for 4.6.2.

@Repiteo Repiteo removed the cherrypick:4.6 Considered for cherry-picking into a future 4.6.x release label Feb 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[4.6 RC2] (Linux Wayland) Run window ignores project window size settings

4 participants