Add support for the XWAYLAND extension

Where this extension is present, we can be sure the X server is
Xwayland. Since it'll take a while for servers to propagate, leave the
existing check in place as fallback.

See xorg/proto/xorgproto!54

Signed-off-by: Peter Hutterer <>
6 jobs for wip/xwayland-extension in 1 minute and 3 seconds (queued for 1 second)