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-08-24 15:46:15 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-24 15:46:15 +1000
commit92efbc61f72923304b92057d16760cd4d29dc67f (patch)
tree0f12ffe26475bfb50019708d2eeb533d045d8289 /modules/bar/components/workspaces/Workspaces.qml
parenthypr: proper kb layout code (diff)
downloadcaelestia-shell-92efbc61f72923304b92057d16760cd4d29dc67f.tar.gz
caelestia-shell-92efbc61f72923304b92057d16760cd4d29dc67f.tar.bz2
caelestia-shell-92efbc61f72923304b92057d16760cd4d29dc67f.zip
bar: better handling for named workspaces
Fixes #448
Diffstat (limited to 'modules/bar/components/workspaces/Workspaces.qml')
-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 c9a90e8..192d297 100644
--- a/modules/bar/components/workspaces/Workspaces.qml
+++ b/modules/bar/components/workspaces/Workspaces.qml
@@ -90,7 +90,7 @@ StyledClippingRect {
MouseArea {
anchors.fill: layout
onClicked: event => {
- const ws = layout.childAt(event.x, event.y).index + root.groupOffset + 1;
+ const ws = layout.childAt(event.x, event.y).ws;
if (Hypr.activeWsId !== ws)
Hypr.dispatch(`workspace ${ws}`);
else