After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 645753 - Notifications for tray icons are lost
Notifications for tray icons are lost
Status: RESOLVED FIXED
Product: gnome-shell
Classification: Core
Component: message-tray
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Dan Winship
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-26 14:57 UTC by Giovanni Campagna
Modified: 2011-03-29 03:13 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
MessageTray: don't forward click on sources with notifications (1.31 KB, patch)
2011-03-26 14:59 UTC, Giovanni Campagna
reviewed Details | Review
MessageTray: don't forward click on sources with notifications (1.47 KB, patch)
2011-03-28 18:41 UTC, Giovanni Campagna
committed Details | Review

Description Giovanni Campagna 2011-03-26 14:57:14 UTC
NotificationDaemon associates received notifications with a tray icon, when it can find one, but the all tray icons forward clicks on the summary item to the X window. This means that notifications are not reachable from the summary, with either right or left click.
Comment 1 Giovanni Campagna 2011-03-26 14:59:46 UTC
Created attachment 184295 [details] [review]
MessageTray: don't forward click on sources with notifications

When a source has an associated tray icon, we would forward all clicks
to the X11 window, meaning that the summary notification could not
be opened. Instead, restore normal event flow for clicks, when the
source has notifications in the queue.
Comment 2 Owen Taylor 2011-03-27 18:47:52 UTC
Giovanni - do you have an example of an app with both a tray icon and notifications? This issue was discussed earlier when the patch was going in and the feeling was that there weren't any important cases where this came up.
Comment 3 Giovanni Campagna 2011-03-28 13:20:43 UTC
My case happened with liferea, which has the option to use a status icon and a notification at the same time. xchat-gnome has the same option available, although I disabled it.
And even if there aren't important cases, a notification which exists but is impossible to interact with is at least a leak.
Comment 4 Owen Taylor 2011-03-28 17:44:42 UTC
So, in the conflicting case, clearly either one or the other has to win. I don't see a problem with making the notifications win.

*However* - I think we should restrict this to left-clicks, because the right-click menu is confusing and low-value for status icons and in fact reveals bugs - you can remove a status icon.

Assigning for Dan to see if he sees any other issues with this approach and the interaction with forwarding clicks to status icons.
Comment 5 Dan Winship 2011-03-28 18:14:50 UTC
Comment on attachment 184295 [details] [review]
MessageTray: don't forward click on sources with notifications

general approach is fine. As Owen suggests, we may want to check the event button.
Comment 6 Giovanni Campagna 2011-03-28 18:41:05 UTC
Created attachment 184492 [details] [review]
MessageTray: don't forward click on sources with notifications

When a source has an associated tray icon, we would forward all clicks
to the X11 window, meaning that the summary notification could not
be opened. Instead, restore normal event flow for clicks, when the
source has notifications in the queue.
Comment 7 Dan Winship 2011-03-28 18:56:05 UTC
Comment on attachment 184492 [details] [review]
MessageTray: don't forward click on sources with notifications

looks good, subject to r-t approval
Comment 8 Owen Taylor 2011-03-29 03:13:05 UTC
Pushed, thanks!. (Release-team sign-off: http://mail.gnome.org/archives/release-team/2011-March/msg00497.html)

Attachment 184492 [details] pushed as 96c2b5e - MessageTray: don't forward click on sources with notifications