Skip to content

v1.4.1 Windows - Fix multi-monitor coordinate offset

Choose a tag to compare

@pvjagtap pvjagtap released this 29 May 17:54
· 3 commits to main since this release

Bug Fix

Fixes click visuals appearing far from cursor on non-primary monitors.

Root cause

GetDpiForWindow was called before SetWindowPos moved the window to its target monitor. At that point the window was still on the primary monitor (where WPF initially placed it), so it reported the primary monitor's DPI — not the correct DPI for the overlay window's actual monitor. All coordinate math divided by the wrong DPI scale.

Fix

Position the window on its target monitor first via \SetWindowPos, then call \GetDpiForWindow. Now the correct per-monitor DPI is always used.

Also fixed

  • Canvas child cap raised 200→600 to prevent laser stroke drawing events being dropped
  • Removed debug diagnostic file from release build

Download

Extract the zip and run \ClickLight.exe. Requires .NET 8 runtime.