Skip to content

Wayland: xreader forces the X11 GDK backend #726

Description

@neoden

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions