build: fix have_xwayland when xcb-icccm is not found

xcb-icccm is required to build Xwayland support.

Backported from commit d41f11e6bd.
This commit is contained in:
Simon Ser 2022-12-03 17:48:41 +01:00
parent baf027fc5b
commit 194fdc6c35

View file

@ -83,7 +83,7 @@ endforeach
if get_option('xwayland').enabled() and not wlroots_features['xwayland'] if get_option('xwayland').enabled() and not wlroots_features['xwayland']
error('Cannot enable Xwayland in sway: wlroots has been built without Xwayland support') error('Cannot enable Xwayland in sway: wlroots has been built without Xwayland support')
endif endif
have_xwayland = xcb.found() and wlroots_features['xwayland'] have_xwayland = xcb.found() and xcb_icccm.found() and wlroots_features['xwayland']
if get_option('sd-bus-provider') == 'auto' if get_option('sd-bus-provider') == 'auto'
if not get_option('tray').disabled() if not get_option('tray').disabled()