From: Jan Beich Date: Mon, 19 Dec 2022 10:47:06 +0000 (+0000) Subject: view: limit XCB header to Xwayland after 286b2146c348 X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=3dec9cf40cebe0e231e42722caa3c8fbdc2d5f83;p=proto%2Flabwc.git view: limit XCB header to Xwayland after 286b2146c348 ../src/view.c:5:10: fatal error: 'xcb/xcb_icccm.h' file not found #include ^~~~~~~~~~~~~~~~~ --- diff --git a/src/view.c b/src/view.c index 058d09ae..b7a87a95 100644 --- a/src/view.c +++ b/src/view.c @@ -2,7 +2,6 @@ #include #include #include -#include #include "common/scene-helpers.h" #include "labwc.h" #include "ssd.h" @@ -10,6 +9,10 @@ #include "view.h" #include "workspaces.h" +#if HAVE_XWAYLAND +#include +#endif + #define LAB_FALLBACK_WIDTH 640 #define LAB_FALLBACK_HEIGHT 480 #define MAX(a, b) (((a) > (b)) ? (a) : (b))