wayland: In case *stable* XDG Shell protocol isn't supported, be more informative.

The exception was not very informative about why exactly the
error message may occur. Weston in Debian buster doesn't
support the stable XDG Shell protocol, for instance, and
triaging this took some effort.
This commit is contained in:
Ivan Vučica 2020-04-25 16:18:00 +01:00
parent 84f71f5c3e
commit b294b7f1b9
No known key found for this signature in database
GPG key ID: 6E4D7BA2D93CAC9D

View file

@ -802,8 +802,12 @@ int NSToWayland(struct window *window, int ns_y)
format: @"Unable to get compositor"];
}
if (!wlconfig->wm_base) {
/* Note: this was merged into Weston only as of Feb 2019, and is
probably in Weston only as of 6.0 release, therefore not in Weston
5.x present in Debian buster (current stable). See Weston merge request
!103. */
[NSException raise: NSWindowServerCommunicationException
format: @"Unable to get xdg-shell / xdg_wm_base"];
format: @"Unable to get xdg-shell / xdg_wm_base - your Wayland compositor must support the stable XDG Shell protocol"];
}
return self;