From 607c295527c36d9709776d27d833514a63400d17 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Fri, 29 Sep 2023 02:29:30 +0200 Subject: [PATCH] src/view.c: guard xwayland include Fixes: #1118 --- src/view.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/view.c b/src/view.c index 23b345fe..6e41f382 100644 --- a/src/view.c +++ b/src/view.c @@ -2,7 +2,6 @@ #include #include #include -#include #include "common/mem.h" #include "common/scene-helpers.h" #include "labwc.h" @@ -15,6 +14,10 @@ #include "workspaces.h" #include "xwayland.h" +#if HAVE_XWAYLAND +#include +#endif + #define LAB_MIN_VIEW_WIDTH 100 #define LAB_MIN_VIEW_HEIGHT 60 #define LAB_FALLBACK_WIDTH 640