Skip to content

Commit

Permalink
Send a default action when notification is closed by user
Browse files Browse the repository at this point in the history
  • Loading branch information
BarbUk committed Oct 9, 2023
1 parent aa8c7c6 commit 5daae2b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/naughty/dbus.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 5daae2b

Please sign in to comment.