Send a default action when notification is closed by user

This commit is contained in:
BarbUk 2023-10-09 15:07:39 +02:00
parent aa8c7c6e27
commit 5daae2bb5d
No known key found for this signature in database
GPG Key ID: B6D01F84A7519939
1 changed files with 3 additions and 0 deletions

View File

@ -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",