From 3db7a6fbd4ff451253b98f047e0549fc69486f01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivan=20Vu=C4=8Dica?= Date: Sun, 26 Jan 2020 21:42:35 +0000 Subject: [PATCH] wayland: Split the check for compositor and wm_base into two checks. --- Source/wayland/WaylandServer.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/wayland/WaylandServer.m b/Source/wayland/WaylandServer.m index ba9cb7b..e999e90 100644 --- a/Source/wayland/WaylandServer.m +++ b/Source/wayland/WaylandServer.m @@ -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;