diff options
| author | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-16 17:44:41 +1000 |
|---|---|---|
| committer | Soramane <61896496+soramanew@users.noreply.github.com> | 2025-07-16 17:44:41 +1000 |
| commit | d2b6d2d2588ddfd0b93ec4632734c63bb892d851 (patch) | |
| tree | 2e2be61323defcb5d80b5a9620c36e993ff4b712 | |
| parent | notifs: fix interactions (diff) | |
| download | caelestia-shell-d2b6d2d2588ddfd0b93ec4632734c63bb892d851.tar.gz caelestia-shell-d2b6d2d2588ddfd0b93ec4632734c63bb892d851.tar.bz2 caelestia-shell-d2b6d2d2588ddfd0b93ec4632734c63bb892d851.zip | |
notifs: pause expire on press
| -rw-r--r-- | modules/notifications/Notification.qml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 87e23a1..ef098da 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -50,17 +50,24 @@ StyledRect { preventStealing: true onEntered: root.modelData.timer.stop() - onExited: root.modelData.timer.start() + onExited: { + if (!pressed) + root.modelData.timer.start(); + } drag.target: parent drag.axis: Drag.XAxis onPressed: event => { + root.modelData.timer.stop(); startY = event.y; if (event.button === Qt.MiddleButton) root.modelData.notification.dismiss(); } onReleased: event => { + if (!containsMouse) + root.modelData.timer.start(); + if (Math.abs(root.x) < Config.notifs.sizes.width * Config.notifs.clearThreshold) root.x = 0; else |