Bug 405639

Summary: Do something sensible when clicking on the background of a notification with no default action specified
Product: [Plasma] plasmashell Reporter: leftcrane <leftcrane>
Component: NotificationsAssignee: Kai Uwe Broulik <kde>
Status: CONFIRMED ---    
Severity: wishlist CC: elypter, nate, plasma-bugs
Priority: NOR    
Version: 5.23.2   
Target Milestone: 1.0   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description leftcrane 2019-03-19 12:14:24 UTC
Lots of notifications seem poorly designed in that nothing happens when you click on them. The notification doesn't get dismissed, nor is any action invoked. 

What's worse is that some of them stick around for a while before disappearing. To dismiss them you have click on the tiny x in the popup, which is not ideal.

I wonder if KDE can do anything to address this problem caused by these third-party notifications

Ideally there'd be a shortcut to invoke some default action on the notification, or if none exists, close the popup. I think it may even be a good idea to make sure that clicking on the body of the notification behave the same way as this proposed shortcut (invoke an action if one exists, close as fallback). 

In rare cases you want to copy notification text, so you might want an escape hatch for this click to dismiss action. Might it be possible to provide a "select text" button on the notification for these purposes?


I am not sure whether this is whithin the realm of possibility or will have unwanted side-effects, so at a minimum I would just propose having a standard shortcut to dismiss (and maybe another one to snooze, if that's ever planned as a feature).
Comment 1 leftcrane 2019-03-19 12:15:43 UTC
"I think it may even be a good idea to make sure that clicking on the body of the notification behave the same way as this proposed shortcut"

This would be especially relevant for new users who aren't familiar with the shortcuts.
Comment 2 leftcrane 2019-03-21 09:10:10 UTC
some of them wont even close when you act on them - like chromium notifications
Comment 3 elypter 2021-11-05 18:25:55 UTC
alternatively it could be closable by a 2 finger swipe to the left on a touchpad which is treated as a left scroll. it already closes on swiping left on a touchscreen like on android. swiping right could pin it, save it for later or perform an action. alternatively a double click could be used to close as well. the middle click could be used for alternative actions. notifications with 2 or more options could use swiping left or right for the major 2 options and indicate that possibility with arrows on the buttons
Comment 4 Nate Graham 2023-04-28 04:35:07 UTC
> What's worse is that some of them stick around for a while before disappearing. To dismiss them you have click on the tiny x in the popup, which is not ideal.
This is a separate issue; see Bug 413203.

> some of them wont even close when you act on them - like chromium notifications
This is still another separate issue; see Bug 464982.