fix(wm): identify monitor dpi correctly

This commit uses a more reliable Win32 API call to determine the scaling
factor / DPI of user monitors, so that the scale of a window can be
correctly adjusted when moved between monitors with different DPI
settings.

fix #622
This commit is contained in:
LGUG2Z
2024-01-06 14:30:09 -08:00
parent f9c69e51aa
commit 025cb08b3e
3 changed files with 24 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ install:
just install-target komorebi
run:
just install-komorebic
just install-target komorebic
cargo +stable run --bin komorebi --locked
warn $RUST_LOG="warn":