summaryrefslogtreecommitdiff
path: root/modules/bar/components/workspaces/ActiveIndicator.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/bar/components/workspaces/ActiveIndicator.qml')
-rw-r--r--modules/bar/components/workspaces/ActiveIndicator.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bar/components/workspaces/ActiveIndicator.qml b/modules/bar/components/workspaces/ActiveIndicator.qml
index 7e7ad8d..ba5c006 100644
--- a/modules/bar/components/workspaces/ActiveIndicator.qml
+++ b/modules/bar/components/workspaces/ActiveIndicator.qml
@@ -17,7 +17,7 @@ Rectangle {
property int currentIdx: Hyprland.activeWsId - 1 - groupOffset
property real leading: workspaces[currentIdx][vertical ? "y" : "x"]
property real trailing: workspaces[currentIdx][vertical ? "y" : "x"]
- property real currentSize: workspaces[currentIdx][vertical ? "height" : "width"]
+ property real currentSize: workspaces[currentIdx].size
property real size: Math.abs(leading - trailing) + currentSize
property real offset: Math.min(leading, trailing)