elementary / notifications

Gtk Notifications Server
https://elementary.io
GNU General Public License v3.0
38 stars 6 forks source link

Stop processing click events once dismissed (fixes #141) #142

Closed bluesabre closed 3 years ago

bluesabre commented 3 years ago

Once the notification is dismissed, set a flag to stop processing further events. This is really only needed for action handling, as found in #141

marbetschar commented 3 years ago

I'm wondering if we can re-use an existing property to avoid having AbstractBubble receive any events once the notification is dismissed?

Maybe one of Gtk.Window.is_active or Gtk.Widget.sensitive does the trick too?

danirabbit commented 3 years ago

Gtk actually has a built in mechanism for short-circuiting button events. I submitted a branch here: https://github.com/elementary/notifications/pull/143