diff options
| -rw-r--r-- | bar/Workspace.qml | 6 | ||||
| -rw-r--r-- | config/Bar.qml | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bar/Workspace.qml b/bar/Workspace.qml index 2c98ae4..f709478 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -123,7 +123,11 @@ Item { } MouseArea { - anchors.fill: parent + anchors { + fill: parent + topMargin: Bar.wsExtraMouseArea * -1 + bottomMargin: Bar.wsExtraMouseArea * -1 + } acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton hoverEnabled: true diff --git a/config/Bar.qml b/config/Bar.qml index ce873e4..b460604 100644 --- a/config/Bar.qml +++ b/config/Bar.qml @@ -30,6 +30,7 @@ Singleton { readonly property double wsEmptyOpacity: 0.2 // wsAnimationEasing using Hyprland's actual ws animation easing readonly property int wsAnimationDuration: 200 + readonly property int wsExtraMouseArea: wsHorizontalSpacing / 2 readonly property int appIconSize: 25 |
