mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 07:21:02 +00:00
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:
parent
84f71f5c3e
commit
b294b7f1b9
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue