Repository navigation
Match Battle.net's DPI to the monitor scale on launch - #17418
Merged
Merged
Conversation
Contributor
[Medium impact] The PR appears safe to merge; no new actionable issues were found. SummaryBattle.net now matches Wine's DPI to the focused monitor's scale before launch, unless its prefix is already running.
Reviews (3) · Last reviewed commit: "Redirect the Battle.net test's wineserve..." · Reviewed by Greptile |
ryanrhughes
added a commit
that referenced
this pull request
Nov 4, 2026
Hyprland leaves XWayland apps unscaled, and Wine reads its DPI from the prefix registry, so the launcher opened at 100% on HiDPI monitors. omarchy-launch-battlenet now sets LogPixels to the focused monitor's scale x 96 before each launch, and leaves it alone while the prefix's wineserver is running. (cherry picked from commit 24e5617)
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 4, 2026
Hyprland leaves XWayland apps unscaled, and Wine reads its DPI from the prefix registry, so the launcher opened at 100% on HiDPI monitors. omarchy-launch-battlenet now sets LogPixels to the focused monitor's scale x 96 before each launch, and leaves it alone while the prefix's wineserver is running.
cursor Bot
pushed a commit
to mark-groves/omarchy
that referenced
this pull request
Nov 5, 2026
Hyprland leaves XWayland apps unscaled, and Wine reads its DPI from the prefix registry, so the launcher opened at 100% on HiDPI monitors. omarchy-launch-battlenet now sets LogPixels to the focused monitor's scale x 96 before each launch, and leaves it alone while the prefix's wineserver is running.
20 of 34 tasks
This was referenced Nov 9, 2026
4 tasks
omarchybot
added a commit
to Bartok9/omarchy
that referenced
this pull request
Nov 17, 2026
quattro added DPI matching to omarchy-launch-battlenet (omacom#17418, omacom#18286) and a launch-battlenet-test.sh of its own. The DPI match now runs only on the path that actually launches, so focusing an open window or refusing a windowless tree leaves user.reg alone. The guard's tests join quattro's file in its style: a real windowless process stands in for the hidden tree, so pgrep is no longer stubbed. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
On a HiDPI monitor the Battle.net launcher opens at 100%, so it looks half-size. Hyprland leaves XWayland apps unscaled (
xwayland:force_zero_scaling), and Wine scales them from theLogPixelsDPI value in its prefix registry. Our prefix keeps Wine's default of 96, and nothing changes it to match the monitor.omarchy-launch-battlenetnow setsLogPixelsfrom the focused monitor's scale before each launch: scale × 96, so 2 becomes 192 and 1.6 becomes 154. Battle.net's Chromium UI follows that value, so text stays sharp. Because the value is set on every launch, a scale change takes effect the next time Battle.net starts. Wine only reads the DPI at startup, so it can't follow a change while the launcher is open.The DPI is left alone while the prefix's wineserver is running. The running launcher would ignore the new value, and wineserver writes its in-memory registry back over
user.regwhen it exits.I also tried Proton's Wayland driver (
PROTON_ENABLE_WAYLAND=1). It didn't help: the launcher was still drawn at 96 DPI, and the window class changed fromsteam_app_battlenet, so the Battle.net window rules stopped matching.Tested on a 4K monitor at scale 2. Battle.net was half-size before this change; after it, the registry reads 192 and the launcher opens at the right size from the menu.