Skip to content

Support Wayland - #727

Open
neoden wants to merge 2 commits into
linuxmint:masterfrom
neoden:wayland
Open

Support Wayland#727
neoden wants to merge 2 commits into
linuxmint:masterfrom
neoden:wayland

Conversation

@neoden

@neoden neoden commented Jul 30, 2026

Copy link
Copy Markdown

Fixes #726.

  • Remove the forced X11 backend and a stray gdk/gdkwayland.h include (the latter also fixes building against GTK without the Wayland backend, Can't build without Wayland #344).
  • Replace the bundled totem-scrsaver with gtk_application_inhibit(): GTK talks to org.gnome.SessionManager and falls back to org.freedesktop.ScreenSaver, covering Cinnamon, MATE, Xfce, GNOME and KDE on both X11 and Wayland. The inhibit cookie is tracked in EvApplication to keep the unbalanced enable/disable calls from ev-window.c idempotent. This also removes the direct libX11 build dependency.

Tested natively on Wayland (sway), including presentation mode. I don't have a real X11 session at hand, so the X11 path is only build-tested — I'd appreciate it if someone could give it a quick try there.

@neoden

neoden commented Jul 30, 2026

Copy link
Copy Markdown
Author

Follow-up on testing: I've now also verified the X11 path by running with GDK_BACKEND=x11 under XWayland — normal window and presentation mode both work as before, no warnings from the X11 code paths. Still untested on a bare X11 session with a real session manager, but that part is backend-independent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Wayland: xreader forces the X11 GDK backend

1 participant