diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-26 16:40:20 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-27 17:36:50 +0800 |
| commit | 9a60b139dfc7c1afd12fff41b4f8929668e6e1be (patch) | |
| tree | ca6c4c49cdea27981c715b6a4cbb9628ba99a9bf | |
| parent | e52dd0b3e4d9e21038bcbc4eddfe0e7817e2bee9 (diff) | |
ws: extra mousearea
easier to click
| -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 |
