GNOME Bugzilla – Bug 784642
gtk_window_present() doesn't move the window to foreground anymore
Last modified: 2017-07-11 07:11:17 UTC
When other applications, say Empathy, have notifications shown in GNOME Shell's message tray, a click on the said notification will bring the applications to focus. That is not how a click action on notification from Evolution behaves: the nofication simply disappears from the message tray. A fix for this will not be just for consistency across apps, but it's also a great convenience for users: if I click on the notification popup when an email arrives, it means I want to open that email, so my expectation is that it will bring me to Evolution and show me the email. If there's a setting that toggles this, I'm not aware of that.
I should add that this happens on Wayland. I'm not entirely sure how it behaves back in X.org.
Thanks for a bug report. Could you provide the version of evolution, please? I do not have any specific bug on mind, but the version is good at least for history. I see that there is some code called to do what you request, and it calls gtk_window_present(). I see it is called, thus it's some issue in the gtk+ itself or lower. You can test it when you change the current view from Mail to other, then click the notification. It'll switch the window to the Mail view. It also tries to select the folder for which the notification had been opened, but that fails due to wrong folder URI being used. I fixed that for 3.24.4+/3.25.4+, but it doesn't fix the "move to foreground". Thus it seems like an issue in gtk+, thus I'm moving this there.
Evolution I have is version 3.24.3, though I vaguely remember that this problem exists too in 3.22.x. I can confirm that the view-switching works when Evolution is already in the foreground.
*** This bug has been marked as a duplicate of bug 766284 ***