From dc7fee36ac26af215cf9cc2727c35b34d16113e0 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 3 Sep 2026 22:21:50 +0800 Subject: IComponent*: use onClicked instead of onPressed --- bar/TimeDate.qml | 2 +- bar/Workspace.qml | 2 +- bar/components/SimpleResource.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'bar') diff --git a/bar/TimeDate.qml b/bar/TimeDate.qml index ddeca47..adbda83 100644 --- a/bar/TimeDate.qml +++ b/bar/TimeDate.qml @@ -126,7 +126,7 @@ Item { MouseArea { anchors.fill: parent cursorShape: Qt.PointingHandCursor - onPressed: { + onClicked: { root.isAlt = !root.isAlt; } } diff --git a/bar/Workspace.qml b/bar/Workspace.qml index 51c4ba4..9096a2e 100644 --- a/bar/Workspace.qml +++ b/bar/Workspace.qml @@ -132,7 +132,7 @@ Item { acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton hoverEnabled: true - onPressed: { + onClicked: { if (!parent.active) Hyprland.dispatch(`hl.dsp.focus({ workspace = '${index + 1}' })`); } diff --git a/bar/components/SimpleResource.qml b/bar/components/SimpleResource.qml index cb2fef6..6159f62 100644 --- a/bar/components/SimpleResource.qml +++ b/bar/components/SimpleResource.qml @@ -93,7 +93,7 @@ Item { MouseArea { anchors.fill: parent cursorShape: altValue != value ? Qt.PointingHandCursor : Qt.ArrowCursor - onPressed: { + onClicked: { root.isAlt = !root.isAlt; } } -- cgit v1.2.3