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.
This commit is contained in:
Yukari Chiba 2025-05-15 02:31:19 +08:00 committed by GitHub
parent a51e639d81
commit 75f2cb5f65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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