From 9a60b139dfc7c1afd12fff41b4f8929668e6e1be Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 26 Jul 2025 16:40:20 +0800 Subject: ws: extra mousearea easier to click --- bar/Workspace.qml | 6 +++++- config/Bar.qml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3