feat(bar): dpi-awareness + position hotloading

This commit ensures that the komorebi-bar.exe process is DPI aware and
applies DPI compensation to viewport.position and viewport.inner size
both on launch and on configuration reload.  viewport.position changes
are now hotloaded wihtout having to restart the process.

re #1024
This commit is contained in:
LGUG2Z
2024-10-04 15:57:34 -07:00
parent 2d1613b4d9
commit 20f370a51d
4 changed files with 72 additions and 13 deletions
Generated
+7
View File
@@ -501,6 +501,12 @@ version = "1.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
[[package]]
name = "atomic_float"
version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "628d228f918ac3b82fe590352cc719d30664a0c13ca3a60266fe02c7132d480a"
[[package]]
name = "atspi"
version = "0.19.0"
@@ -2705,6 +2711,7 @@ dependencies = [
name = "komorebi-bar"
version = "0.1.30"
dependencies = [
"atomic_float",
"chrono",
"clap",
"color-eyre",