From 75f2cb5f6559ca6ca7c6300b270e5ddc3fdabe31 Mon Sep 17 00:00:00 2001 From: Yukari Chiba Date: Thu, 15 May 2025 02:31:19 +0800 Subject: [PATCH] xwayland: do not include xcb.h when xwayland is disabled (#10407) xcb.h should not be included when xwayland is disabled. This allows hyprland to not use X11 libraries at all when xwayland is disabled. --- src/xwayland/Dnd.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xwayland/Dnd.hpp b/src/xwayland/Dnd.hpp index 58129741..33c841a5 100644 --- a/src/xwayland/Dnd.hpp +++ b/src/xwayland/Dnd.hpp @@ -5,7 +5,9 @@ #include "../managers/input/InputManager.hpp" #include #include +#ifndef NO_XWAYLAND #include +#endif #define XDND_VERSION 5