Repository navigation
Scale X11 apps to the size of Wayland ones where Hyprland can - #16935
Open
ParkerrDev wants to merge 5 commits into
Open
ParkerrDev wants to merge 5 commits into
ParkerrDev wants to merge 5 commits into
Conversation
monitors.lua hands Hyprland's xwayland:scale the GDK scale that X11 apps already draw at, guarded so a Hyprland without the setting keeps X11 unscaled as before. A migration adds the same lines to a monitors.lua that still has the template's GDK_SCALE line.
Contributor
Confidence Score: 5/5
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummarySets X11 buffer scaling to match
Reviews (5) · Last reviewed commit: "Merge quattro into xwayland-scale" · Reviewed by Greptile |
Contributor
|
Want your agent to iterate on Greptile's feedback? Try greploops. |
The monitors manual moved to manual/34-monitors.md; its X11 note moves with it. The user monitors.lua keeps quattro's new VRR comment.
5 tasks done
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.
X11 applications currently change apparent size between monitors with different scales. With the capability added by omacom/omarchy-pkgs#1757, Omarchy sets
xwayland:scaleto the same integer asGDK_SCALE, so X11 buffers are displayed at logical size on each monitor.The default drawing scale is set in
default/hypr/monitors.lua, and saved monitor settings update X11 scaling alongside GDK_SCALE. The monitor panel continues to choose the scale as upstream does. Compositors without the option skip it. The user configuration documents overriding both values. The earlier migration is removed because the setting now lives in defaults instead of being appended to user configuration.Validation:
hyprland-monitor-settings-test.sh,config-test.sh, andhyprland-default-config-test.shpass. The supported-compositor test explicitly checks a saved monitor scale of 1.6 produces GDK_SCALE2and compositor scale2, and fails when the compositor configuration call is removed. Unsupported compositors are also covered.The companion package PR records a successful patched Hyprland 0.57.2 build and run in an isolated nested session. Fresh checks with stock Xwayland verify unchanged logical window size between monitors at 1.6 and 1, preserved X11 buffer dimensions, correct pointer coordinates, live unscaled-rule toggles for a window and its already-open menu, and the global off switch after reload. Details and the limits of that validation are in the package PR.
Demo
The existing Xscale comparison animation below was published with the original implementation, before the 0.57.1 update. It illustrates the size difference between scaled monitors; it is not a recording of the fresh 0.57.1 validation described above.
Additional local validation: both commands in the translation-structure workflow pass (
I18N_STRUCTURAL=1 bash test/shell.d/i18n-test.shandpython3 scripts/i18n-sync.py extract-scan --check). GitHub's workflow runs currently require approval before any jobs start.Maintenance validation (2026-11-15): merged current quattro without conflicts. The monitor-settings, config, default-Hyprland-config and structural translation tests pass, as does translation extract-scan. The paired package PR preserves current upstream titlebars 0.4.0-1 and Hyprland 0.57.2. GitHub workflows remain subject to maintainer approval.
Maintenance validation (2026-12-05, a68f0e6): merged current quattro. The monitors manual moved to
manual/34-monitors.md, so the X11 note moved with it, and the usermonitors.luakeeps quattro's new VRR comment. The monitor-settings, config and default-Hyprland-config tests pass, as do the structural translation test and translation extract-scan. The companion package PR is now on Hyprland 0.57.2-13, above master's 0.57.2-12.