summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/Workspaces.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-01 15:50:28 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-01 15:50:28 +1000
commit79892c927285cd695cea211c694dd78fae265a71 (patch)
treefdfc8a11c277616bc1df54b5dc4498d69aec5805 /modules/bar/components/workspaces/Workspaces.qml
parentfeat: use qsTr (diff)
downloadcaelestia-shell-79892c927285cd695cea211c694dd78fae265a71.tar.gz
caelestia-shell-79892c927285cd695cea211c694dd78fae265a71.tar.bz2
caelestia-shell-79892c927285cd695cea211c694dd78fae265a71.zip
bar: fix workspaces occupied
Also some optimisations
Diffstat (limited to '')
-rw-r--r--modules/bar/components/workspaces/Workspaces.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bar/components/workspaces/Workspaces.qml b/modules/bar/components/workspaces/Workspaces.qml
index 35cc2b0..692ae32 100644
--- a/modules/bar/components/workspaces/Workspaces.qml
+++ b/modules/bar/components/workspaces/Workspaces.qml
@@ -14,7 +14,7 @@ Item {
acc[curr.id] = curr.lastIpcObject.windows > 0;
return acc;
}, {})
- readonly property int groupOffset: Math.floor(((Hyprland.activeWorkspace?.id ?? 1) - 1) / BarConfig.workspaces.shown) * BarConfig.workspaces.shown
+ readonly property int groupOffset: Math.floor((Hyprland.activeWsId - 1) / BarConfig.workspaces.shown) * BarConfig.workspaces.shown
implicitWidth: layout.implicitWidth
implicitHeight: layout.implicitHeight