Skip to content

xwayland: Enable XDG portal only when not nested

With EI support wired to XTEST, and oeffis being enabled in Xwayland means that XTEST will always go through the XDG portal.

While this the intended behavior for the general use case of Xwayland running rootless on a desktop compositor, that breaks when Xwayland is running on a nested compositor, because the portal is for the entire session and not limited to the nested Wayland compositor.

To avoid that issue, Xwayland has now a new command line option "-enable-portal" for the Wayland compositor (who spawn Xwayland) to explicitly enable support for XDG portal in Xwayland.

Enable XDG portal in Xwayland only when not running nested.

See-also: https://gitlab.freedesktop.org/xorg/xserver/-/issues/1586
See-also: https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1170
Closes: #3047 (closed)

/cc @Joshua-Ashton

Merge request reports

Loading