Hi! Currently xreader always runs through XWayland in Wayland sessions, because of the gdk_set_allowed_backends("x11") call in shell/main.c that was backported from Atril back in 2017 (#126).
Atril reverted this in 2020 (mate-desktop/atril#504) and has been running natively on Wayland since then. As far as I can tell, the only remaining blocker in xreader is the bundled totem-scrsaver code: its X11 fallback calls Xlib directly and would crash on Wayland when no session manager D-Bus service is available. It can be replaced with gtk_application_inhibit(), which is what Evince did.
I have a working patch and will open a PR shortly.
Hi! Currently xreader always runs through XWayland in Wayland sessions, because of the
gdk_set_allowed_backends("x11")call in shell/main.c that was backported from Atril back in 2017 (#126).Atril reverted this in 2020 (mate-desktop/atril#504) and has been running natively on Wayland since then. As far as I can tell, the only remaining blocker in xreader is the bundled totem-scrsaver code: its X11 fallback calls Xlib directly and would crash on Wayland when no session manager D-Bus service is available. It can be replaced with
gtk_application_inhibit(), which is what Evince did.I have a working patch and will open a PR shortly.