summary refs log tree commit diff
path: root/src/ui/NhekoGlobalObject.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/NhekoGlobalObject.cpp')
-rw-r--r--src/ui/NhekoGlobalObject.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp
index 138b4283..e28b1bc1 100644
--- a/src/ui/NhekoGlobalObject.cpp
+++ b/src/ui/NhekoGlobalObject.cpp
@@ -19,7 +19,7 @@
 #include "UserSettingsPage.h"
 #include "Utils.h"
 
-#if XCB_AVAILABLE
+#if XCB_AVAILABLE && QT_CONFIG(xcb)
 #include <xcb/xproto.h>
 #endif
 
@@ -186,7 +186,7 @@ Nheko::createRoom(bool space,
 void
 Nheko::setWindowRole([[maybe_unused]] QWindow *win, [[maybe_unused]] QString newRole) const
 {
-#if XCB_AVAILABLE
+#if XCB_AVAILABLE && QT_CONFIG(xcb)
     const QNativeInterface::QX11Application *x11Interface =
       qGuiApp->nativeInterface<QNativeInterface::QX11Application>();