Skip to content

Commit

Permalink
Merge pull request awesomeWM#3863 from BarbUk/fix/notification_defaul…
Browse files Browse the repository at this point in the history
…t_action_when_dismissed_by_user

Send a default action when notification is closed by user
  • Loading branch information
mergify[bot] committed Oct 12, 2023
2 parents aa8c7c6 + 5daae2b commit 7ed4dd6
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 7ed4dd6

Please sign in to comment.