summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bar/Workspace.qml6
1 files changed, 1 insertions, 5 deletions
diff --git a/bar/Workspace.qml b/bar/Workspace.qml
index da5f6db..6e85087 100644
--- a/bar/Workspace.qml
+++ b/bar/Workspace.qml
@@ -19,11 +19,7 @@ Item {
property bool activeOccupied: false
property bool toChild: false
- property real activeRectX: {
- if (activeIndex < 0)
- return 0;
- return layout.x + activeIndex * Bar.wsIconSize + activeIndex * Bar.wsSpacing;
- }
+ property real activeRectX: layout.x + activeIndex * Bar.wsIconSize + activeIndex * Bar.wsSpacing
function getWorkspaceStats(index) {
const w = ws.values.find(i => i.id === index + 1);