]> git.mdlowis.com Git - proto/labwc.git/commitdiff
view: limit XCB header to Xwayland after 286b2146c348
authorJan Beich <jbeich@FreeBSD.org>
Mon, 19 Dec 2022 10:47:06 +0000 (10:47 +0000)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Mon, 19 Dec 2022 12:12:41 +0000 (13:12 +0100)
../src/view.c:5:10: fatal error: 'xcb/xcb_icccm.h' file not found
 #include <xcb/xcb_icccm.h>
          ^~~~~~~~~~~~~~~~~

src/view.c

index 058d09aec46977dd13e135451ed66420b3638a08..b7a87a95fccdf8529b0292f89fd8040b218ac3ab 100644 (file)
@@ -2,7 +2,6 @@
 #include <assert.h>
 #include <stdio.h>
 #include <strings.h>
-#include <xcb/xcb_icccm.h>
 #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 <xcb/xcb_icccm.h>
+#endif
+
 #define LAB_FALLBACK_WIDTH 640
 #define LAB_FALLBACK_HEIGHT 480
 #define MAX(a, b) (((a) > (b)) ? (a) : (b))