Skip to content

Scale X11 apps to the size of Wayland ones where Hyprland can - #16935

Open
ParkerrDev wants to merge 5 commits into
omacom:quattrofrom
ParkerrDev:xwayland-scale
Open

ParkerrDev wants to merge 5 commits into
omacom:quattrofrom
ParkerrDev:xwayland-scale

Conversation

@ParkerrDev

@ParkerrDev ParkerrDev commented Oct 28, 2026 •

Copy link
Copy Markdown

X11 applications currently change apparent size between monitors with different scales. With the capability added by omacom/omarchy-pkgs#1757, Omarchy sets xwayland:scale to the same integer as GDK_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, and hyprland-default-config-test.sh pass. The supported-compositor test explicitly checks a saved monitor scale of 1.6 produces GDK_SCALE 2 and compositor scale 2, 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.

Xscale comparison across monitors at scales 1.6 and 1

Additional local validation: both commands in the translation-structure workflow pass (I18N_STRUCTURAL=1 bash test/shell.d/i18n-test.sh and python3 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 user monitors.lua keeps 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.

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.
@greptile-apps

greptile-apps Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5RetriggerView in Greptile

[Medium impact] The PR appears safe to merge; no new actionable issues were found.

Summary

Sets X11 buffer scaling to match GDK_SCALE when Hyprland supports xwayland.scale.

  • X11 apps keep their logical size across monitors when Hyprland supports scaling.

Reviews (5) · Last reviewed commit: "Merge quattro into xwayland-scale" · Reviewed by Greptile

@greptile-apps

greptile-apps Bot commented Nov 15, 2026

Copy link
Copy Markdown
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants