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 750031 - double mail notification is annoying
double mail notification is annoying
Status: RESOLVED DUPLICATE of bug 732141
Product: gnome-shell
Classification: Core
Component: general
3.16.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2015-05-28 12:53 UTC by Stefano Facchini
Modified: 2017-12-12 18:43 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Stefano Facchini 2015-05-28 12:53:13 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...
Comment 1 Milan Crha 2015-05-28 14:33:27 UTC
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
Comment 2 Jan Niklas Hasse (Account disabled) 2017-11-14 15:58:41 UTC
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.
Comment 3 Daniel Boles 2017-12-12 09:40:02 UTC

*** This bug has been marked as a duplicate of bug 741014 ***
Comment 4 Daniel Boles 2017-12-12 18:43:52 UTC

*** This bug has been marked as a duplicate of bug 732141 ***