diff options
| author | Yukari Chiba <i@0x7f.cc> | 2025-05-15 02:31:19 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-14 19:31:19 +0100 |
| commit | 75f2cb5f6559ca6ca7c6300b270e5ddc3fdabe31 (patch) | |
| tree | fe8a3e3400153006d491796c0e98bd052368b0d4 /src/xwayland | |
| parent | a51e639d81b445ad00c5403198e0c1f6c18ed303 (diff) | |
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.
Diffstat (limited to 'src/xwayland')
| -rw-r--r-- | src/xwayland/Dnd.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
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 <wayland-server-protocol.h> #include <hyprutils/os/FileDescriptor.hpp> +#ifndef NO_XWAYLAND #include <xcb/xcb.h> +#endif #define XDND_VERSION 5 |
