xwayland: non-rootless requires the XDG-WM-Base protocol

When running non-rootless, Xwayland requires that the Wayland compositor
supports the XDG-WM-Base protocol.

Check for XDG-WM-Base protocol support at startup and exit cleanly if
missing rather than segfaulting later in ensure_surface_for_window()
while trying to use xdg_wm_base_get_xdg_surface().

Signed-off-by: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Simon Ser <contact@emersion.fr>
4 jobs for check-xdg-wm-base in 4 minutes and 20 seconds (queued for 1 second)
Status Job ID Name Coverage
  Docker Image
passed #5469264
debian-testing

00:00:11

 
  Build And Test
passed #5469265
autotools

00:04:09

passed #5469266
meson

00:00:59

passed #5469267
meson-noglamor

00:00:43