wayland: Split the check for compositor and wm_base into two checks.

This commit is contained in:
Ivan Vučica 2020-01-26 21:42:35 +00:00
parent c1cce2ad67
commit 3db7a6fbd4

View file

@ -755,10 +755,13 @@ int NSToWayland(struct window *window, int ns_y)
wl_display_dispatch(wlconfig->display);
wl_display_roundtrip(wlconfig->display);
if (!wlconfig->compositor || !wlconfig->wm_base) {
if (!wlconfig->compositor) {
[NSException raise: NSWindowServerCommunicationException
format: @"Unable to get compositor"];
}
if (!wlconfig->wm_base) {
[NSException raise: NSWindowServerCommunicationException
format: @"Unable to get xdg-shell / xdg_wm_base"];
}
return self;