fix(border): maintain config compat with windows opts

This commit adds a 7px border offset adjustment to the BORDER_OFFSET
value wherever it is used to maintain config compatibility with komorebi
for Windows.

Windows has stupid 7px invisible borders around every app window which
have to be taken into account when setting the values for these options,
but this is not the case on macOS.

However, if we don't replicate the factoring in of those invisible
borders into our offset calculations, the same border config on Windows
and macOS looks vastly different.
This commit is contained in:
LGUG2Z committed 2026-01-04 19:40:40 -08:00
1 parent c23bf462cb
commit 8b4604d47e
6 files changed
+217 -206

No files matched your search

+2 -2
View File
@@ -52,7 +52,7 @@
"null"
],
"format": "int32",
"default": 5
"default": 0
},
"border_radius": {
"description": "Radius of window borders",
@@ -70,7 +70,7 @@
"null"
],
"format": "int32",
"default": 6
"default": 10
},
"cross_boundary_behaviour": {
"description": "Determine what happens when an action is called on a window at a monitor boundary",