GNOME Bugzilla – Bug 795690
No feedback when trying to open an already open file
Last modified: 2018-05-01 16:08:29 UTC
If I try to open an image in Nautilus and already have the image shown in an unfocused instance, there is no feedback. It would be nice if eog would show try to focus the window where the already opened image is present, show a notification or something along those lines.
I am using eog 3.28.1 under Wayland.
Well, actually the expected behaviour is to focus the existing window. And it behaves correctly for me on X11 (alternatively setting GDK_BACKEND=x11 works in Wayland as well), but fails on Wayland. I took a look at it in the debugger and it seems the issue is that we call gdk_window_present_with_time using GDK_CURRENT_TIME (as there's no event timestamp we could use here). Apparently this is a no-op under Wayland: https://gitlab.gnome.org/GNOME/gtk/blob/33bec5a4fbd95509f6e3b7a457325aeb8b0a0608/gdk/wayland/gdkwindow-wayland.c#L3440 So, I guess this makes it a GTK limitation right now. It is also reproducible with Nautilus, btw. - Open your download folder with Nautilus - Open a Terminal - nautilus ~/Downloads -> Same behaviour. I've opened an GTK+ issue for this as I can't reassign this to GitLab: https://gitlab.gnome.org/GNOME/gtk/issues/213
Thanks!
*** This bug has been marked as a duplicate of bug 766284 ***