diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-20 16:21:42 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-20 16:21:42 +1000 |
| commit | 5f1ffb32f41d40e0404a81fb9b834a1f12d60a5b (patch) | |
| tree | 8cf601e32b93ebae525af6e1ce846c22d1f4344d /modules/sidebar/NotifGroupList.qml | |
| parent | sidebar/notifs: dimmer action text (diff) | |
| download | caelestia-shell-5f1ffb32f41d40e0404a81fb9b834a1f12d60a5b.tar.gz caelestia-shell-5f1ffb32f41d40e0404a81fb9b834a1f12d60a5b.tar.bz2 caelestia-shell-5f1ffb32f41d40e0404a81fb9b834a1f12d60a5b.zip | |
sidebar/notifs: fix interactions outside container
Diffstat (limited to 'modules/sidebar/NotifGroupList.qml')
| -rw-r--r-- | modules/sidebar/NotifGroupList.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/sidebar/NotifGroupList.qml b/modules/sidebar/NotifGroupList.qml index 162c343..6a1a4b8 100644 --- a/modules/sidebar/NotifGroupList.qml +++ b/modules/sidebar/NotifGroupList.qml @@ -13,6 +13,7 @@ Item { required property Props props required property list<var> notifs required property bool expanded + required property Flickable container readonly property real nonAnimHeight: { let h = -root.spacing; @@ -60,6 +61,14 @@ Item { return y; } + containmentMask: QtObject { + function contains(p: point): bool { + if (!root.container.contains(notif.mapToItem(root.container, p))) + return false; + return notifInner.contains(p); + } + } + implicitWidth: root.width implicitHeight: notifInner.implicitHeight |