Skip to content

Add per-monitor DPI awareness - #28

Merged
danielchalmers merged 3 commits into
masterfrom
v5/per-monitor-dpi
Nov 4, 2026
Merged

danielchalmers merged 3 commits into
masterfrom
v5/per-monitor-dpi

Conversation

@danielchalmers

@danielchalmers danielchalmers commented Oct 12, 2026 •

Copy link
Copy Markdown
Owner
  • On a monitor scaled differently from the main one, like a laptop at 150% next to a monitor at 100%, the readings, tooltip and menu are no longer blurry. The widget draws at each monitor's own scale, at the same size as before.
  • Keeping it against its edges and on screen is now worked out in device pixels, so it also works on a second monitor. Dragged between monitors, it stays under the pointer.
  • Adds an app.manifest (PerMonitorV2). The DoNotScaleForDpiChanges switch is set in code, since the download is just the exe.

Change in direction: slimmed to the scaling itself. The widget no longer moves itself to stay against its edges when a monitor's scale changes, and the App.config copy of the switch is gone.

Release notes: a position saved by 4.x on a monitor scaled differently from the main one can open partly past that monitor's edge the first time. Starting the exe again brings it back on screen. Positions on the main monitor are unchanged.

@danielchalmers
danielchalmers marked this pull request as ready for review October 12, 2026 15:41
@danielchalmers danielchalmers changed the title Stay sharp on monitors with different scaling Add per-monitor DPI awareness Oct 12, 2026
@danielchalmers
danielchalmers added this pull request to stack #33 October 12, 2026 16:28
@github-actions github-actions Bot added the enhancement New feature or request label Oct 13, 2026
@danielchalmers
danielchalmers removed this pull request from stack #33 November 4, 2026 19:15
A copy at a new path, like a renamed portable download, now starts on default settings, as it did before 4.1. Bringing in the newest other copy's settings meant editing .NET's config XML, choosing between copies, and scanning for running ones, all to save picking a few menu options again.

Saving a second after each change, and replacing a settings file that can't be read, both stay.
@danielchalmers
danielchalmers changed the base branch from v5/ping-address to v5/simpler-settings November 4, 2026 19:28
- Add app.manifest declaring PerMonitorV2 DPI awareness
- Set DoNotScaleForDpiChanges=false in OnStartup, since we ship just the exe
- Do edge and on-screen placement in device pixels; move with one SetWindowPos call
@danielchalmers
danielchalmers added this pull request to stack #39 November 4, 2026 19:51
Base automatically changed from v5/simpler-settings to master November 4, 2026 20:07
@danielchalmers
danielchalmers merged commit 9338775 into master Nov 4, 2026
2 checks passed
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.

1 participant