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 committed 2024-01-06 14:30:11 -08:00
1 parent f9c69e51aa
commit 025cb08b3e
3 files changed
+24 -10

No files matched your search

+1 -1
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":