From a0f0dcf90a093ede40f0fc1492844d1996923085 Mon Sep 17 00:00:00 2001 From: retrozinndev Date: Mon, 21 Apr 2025 17:20:44 -0300 Subject: [PATCH] :boom: ags(notifications): do not run onClose on hoverLost if holdOnHover is false --- ags/widget/Notification.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ags/widget/Notification.ts b/ags/widget/Notification.ts index e58fd9d..2d3eb38 100644 --- a/ags/widget/Notification.ts +++ b/ags/widget/Notification.ts @@ -59,7 +59,7 @@ export function NotificationWidget(notification: AstalNotifd.Notification|number onClose?.(notification); }, onHover: () => holdOnHover && Notifications.getDefault().holdNotification(notification.id), - onHoverLost: () => onClose?.(notification), + onHoverLost: () => holdOnHover && onClose?.(notification), hexpand: true, vexpand: false, child: new Widget.Box({