]> git.mdlowis.com Git - proto/labwc.git/commitdiff
src/view.c: guard xwayland include
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Fri, 29 Sep 2023 00:29:30 +0000 (02:29 +0200)
committerJohn Lindgren <john@jlindgren.net>
Fri, 29 Sep 2023 00:34:21 +0000 (20:34 -0400)
Fixes: #1118
src/view.c

index 23b345fe3c8c9d85c8f0ab8a44d7a0d2db4731ea..6e41f382b45375030b213e5877fcf9ef57f18e88 100644 (file)
@@ -2,7 +2,6 @@
 #include <assert.h>
 #include <stdio.h>
 #include <strings.h>
-#include <wlr/xwayland.h>
 #include "common/mem.h"
 #include "common/scene-helpers.h"
 #include "labwc.h"
 #include "workspaces.h"
 #include "xwayland.h"
 
+#if HAVE_XWAYLAND
+#include <wlr/xwayland.h>
+#endif
+
 #define LAB_MIN_VIEW_WIDTH  100
 #define LAB_MIN_VIEW_HEIGHT  60
 #define LAB_FALLBACK_WIDTH  640