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 784642 - gtk_window_present() doesn't move the window to foreground anymore
gtk_window_present() doesn't move the window to foreground anymore
Status: RESOLVED DUPLICATE of bug 766284
Product: gtk+
Classification: Platform
Component: Backend: Wayland
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2017-07-07 06:22 UTC by Peter Y. Chuang
Modified: 2017-07-11 07:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Peter Y. Chuang 2017-07-07 06:22:29 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.
Comment 1 Peter Y. Chuang 2017-07-07 09:00:24 UTC
I should add that this happens on Wayland. I'm not entirely sure how it behaves back in X.org.
Comment 2 Milan Crha 2017-07-10 18:06:15 UTC
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.
Comment 3 Peter Y. Chuang 2017-07-11 05:48:23 UTC
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.
Comment 4 Timm Bäder 2017-07-11 07:11:17 UTC

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