summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-16 15:22:49 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-16 15:22:49 +1100
commit31056d48bd15e9e6c8490473712875aeaf4825c6 (patch)
tree4e01268131e0b219189b3cc1a15a2ae79d0731a4 /modules
parentosds: lock keys popups (diff)
downloadcaelestia-shell-31056d48bd15e9e6c8490473712875aeaf4825c6.tar.gz
caelestia-shell-31056d48bd15e9e6c8490473712875aeaf4825c6.tar.bz2
caelestia-shell-31056d48bd15e9e6c8490473712875aeaf4825c6.zip
config: lock osds spacing
Diffstat (limited to 'modules')
-rw-r--r--modules/osds.tsx4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/osds.tsx b/modules/osds.tsx
index afd71db..b6e1333 100644
--- a/modules/osds.tsx
+++ b/modules/osds.tsx
@@ -294,7 +294,9 @@ class LockOsd extends Widget.Window {
if (window !== this && window instanceof LockOsd) {
const child = this.get_child();
if (!child) return;
- this[right ? "marginLeft" : "marginRight"] = window.visible ? child.get_preferred_width()[1] + 5 : 0;
+ this[right ? "marginLeft" : "marginRight"] = window.visible
+ ? child.get_preferred_width()[1] + config.lock.spacing
+ : 0;
}
});
}