GNOME Bugzilla – Bug 750031
double mail notification is annoying
Last modified: 2017-12-12 18:43:52 UTC
Hi, it seems that, since 3.14, Evo sends two notifications for new mail: first, a nice notification is shown, with mail's subject and sender; after clicking on it, instead of bringing the window on top, another notification arrives saying "1 new message - Evolution is ready". I'm not sure whether this is an Evo's bug or rather a gnome-shell bug, though...
Thanks for a bug report. I'd blame gnome-shell, because it's on the shell to actually focus the window, instead of just telling you that the window is ready. I also noticed some discussion about this on some mailing list in the past, but I do not recall exact details where it was. In any case, evolution's code in the question is this: https://git.gnome.org/browse/evolution/tree/plugins/mail-notification/mail-notification.c#n325 I'm moving this to gnome-shell, the call of gtk_window_present() seems to be the correct one. https://developer.gnome.org/gtk3/3.16/GtkWindow.html#gtk-window-present
If I'm not mistaken this bug should be assigned to mutter instead. I think it has to do with this code in core/window.c: if (timestamp != 0 && XSERVER_TIME_IS_BEFORE (timestamp, window->display->last_user_time)) { meta_topic (META_DEBUG_FOCUS, "last_user_time (%u) is more recent; ignoring " " _NET_ACTIVE_WINDOW message.\n", window->display->last_user_time); meta_window_set_demands_attention(window); return; } The "... is ready" message is GNOME Shell's way to handle windows which demand attention. I think this could be fixed by updating display->last_user_time whenever a notification is clicked. If you think I'm on the right track here, I could start working on a patch.
*** This bug has been marked as a duplicate of bug 741014 ***
*** This bug has been marked as a duplicate of bug 732141 ***