Commit 967c60dd authored by Carlos Garnacho's avatar Carlos Garnacho

xwayland: Allow passing a fd for set up clients

This FD also triggers the "wait for WM_S0" paths, so that the
compositor may set up a "maintenance line" for Xwayland, for
services that are essential to run before any client (eg. xrdb).
Those services would use this FD, disguised as an extra display

This -initfd can be seen as a generalization of -wm, a Wayland
compositor may use -initfd to launch its WM and any other clients
that should start up, or it may use -wm as a dedicated connection for
the WM and optionally use -initfd for the misc. startup clients.

If either of -wm or -initfd is passed, Xwayland will expect a selection
notification on WM_S0 before incorporating the FDs in -listen to the
poll list.

Also, correct a minor typo in the listenfd argument output,
give → given.
Signed-off-by: Carlos Garnacho's avatarCarlos Garnacho <>
parent a0269727
Pipeline #51498 passed with stages
in 5 minutes and 52 seconds