diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2026-09-03 22:21:50 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2026-09-03 22:21:50 +0800 |
| commit | dc7fee36ac26af215cf9cc2727c35b34d16113e0 (patch) | |
| tree | 3ffd2d851b7e97bd0035807f9b8edc540aace112 /bar | |
| parent | 533750aa9cfe32e4bab0afb3c82b52d1b01db3ab (diff) | |
IComponent*: use onClicked instead of onPressed
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/TimeDate.qml | 2 | ||||
| -rw-r--r-- | bar/Workspace.qml | 2 | ||||
| -rw-r--r-- | bar/components/SimpleResource.qml | 2 |
3 files changed, 3 insertions, 3 deletions
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; } } |
