From 5daae2bb5d90117eb341ad72eb123c4e6804b780 Mon Sep 17 00:00:00 2001 From: BarbUk Date: Mon, 9 Oct 2023 15:07:39 +0200 Subject: [PATCH] Send a default action when notification is closed by user --- lib/naughty/dbus.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/naughty/dbus.lua b/lib/naughty/dbus.lua index b41aa7788a..8c91261f25 100644 --- a/lib/naughty/dbus.lua +++ b/lib/naughty/dbus.lua @@ -69,6 +69,9 @@ local function sendNotificationClosed(notificationId, reason) if reason <= 0 then reason = cst.notification_closed_reason.undefined end + if reason == cst.notification_closed_reason.dismissed_by_user then + sendActionInvoked(notificationId, "default") + end if bus_connection then bus_connection:emit_signal(nil, "/org/freedesktop/Notifications", "org.freedesktop.Notifications", "NotificationClosed",