summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-06-03 02:45:38 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2023-06-08 22:32:12 +0200
commit7029547647d2d66596b8bb4307500376edad11a9 (patch)
tree0c3d85c14eef98048041dd57a5513a7490879c9f /src
parentRemove WinMain (diff)
downloadnheko-7029547647d2d66596b8bb4307500376edad11a9.tar.xz
Link XCB always if X11 support is on
Diffstat (limited to 'src')
-rw-r--r--src/ui/NhekoGlobalObject.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp
index 0bdb45f4..1bab73b5 100644
--- a/src/ui/NhekoGlobalObject.cpp
+++ b/src/ui/NhekoGlobalObject.cpp
@@ -18,7 +18,9 @@
 #include "Utils.h"
 #include "voip/WebRTCSession.h"
 
+#if XCB_AVAILABLE
 #include <xcb/xproto.h>
+#endif
 
 Nheko::Nheko()
 {
@@ -184,6 +186,7 @@ Nheko::createRoom(bool space,
 void
 Nheko::setWindowRole([[maybe_unused]] QWindow *win, [[maybe_unused]] QString newRole) const
 {
+#if XCB_AVAILABLE
     const QNativeInterface::QX11Application *x11Interface =
       qGuiApp->nativeInterface<QNativeInterface::QX11Application>();
 
@@ -208,4 +211,5 @@ Nheko::setWindowRole([[maybe_unused]] QWindow *win, [[maybe_unused]] QString new
                         8,
                         role.size(),
                         role.data());
+#endif
 }