Repository navigation
fix: workaround for Chromium apps breaking below 1.0 scaling - #2623
Merged
Merged
Conversation
Drakulix
approved these changes
Jul 24, 2026
Drakulix
left a comment
Member
There was a problem hiding this comment.
yeah I wanted to look into this anyway, because I don't think any app was ever really tested for < 1.0 scaling.
So imo we should always clamp to 1 anyway.
jacobktm
approved these changes
Jul 24, 2026
jacobktm
left a comment
There was a problem hiding this comment.
Chromium apps behave correctly after applying this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is a fix for chromium apps running under Wayland breaking below 1.0 scaling(ie at 50% and 75%).
Note that I called the commit a fix but it is really a workaround for an issue that is not ours.
Chromium apps under Wayland seem to break when under 100%.
Other applications like Firefox using Wayland seem to work fine under those scales.
I suspect this has something to do with this clamp in Chromium but I couldn't find the exact logic chain that breaks:
https://chromium.googlesource.com/chromium/src/+/refs/heads/main/ui/ozone/platform/wayland/common/wayland_util.cc#329
For scales >= 100% this doesn't change anything.
For scales < 100%, scaling will still works but the surface buffer will be bigger(up to 4x for 50% compared to what it should be) and the surface will be downscaled when rendered(extra GPU work). This is obviously not ideal but I think the tradeoff of running Chromium apps until it gets fixed is worth it.