Existing Evince windows are not raised _if and only if_ I'm using Wayland
Expected behaviour, working correctly in X session:
- Log into fresh session and open Nautilus to directory containing file1.pdf and file2.pdf
- From Nautilus, open file1.pdf.
- Result: an Evince window with file1.pdf is opened and raised to the foreground
- Alt-tab back to nautilus
- Open file2.pdf
- Result: An Evince window with file2.pdf is opened and raised to the foreground
- Alt-tab back to nautilus
- Open again file1.pdf
- Result: The existing window with file1.pdf is raised
Actual behaviour, on Wayland:
- Log into fresh session and open Nautilus to directory containing file1.pdf and file2.pdf
- From Nautilus, open file1.pdf.
- Result: An Evince window with file1.pdf is opened and raised to the foreground
- Alt-tab back to nautilus
- Open file2.pdf
- Result: An Evince window with file2.pdf is opened and raised to the foreground
- Alt-tab back to nautilus
- Open again file1.pdf
- Result: Nothing happens, must cycle to the existing window manually.
It's exceedingly distressing especially if I have multiple PDF documents open.
I'm experiencing this on Debian 9, Gnome 3.22; I'm not 100% positive, but I am 95% positive this happens in Fedora 28 with Gnome 3.28 too (which ships Wayland by default...).
I experience very similar bugs in GTK applications such as gedit and Epiphany (see gtk#624 (closed), gedit#22 (closed)) but not, for example, if I use Firefox in lieu of Epiphany.
Comments under gtk#624 (closed) suggest that there could be an application-side fix.
Edited by Tobia Tesan