diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-03 02:45:38 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2023-06-08 22:32:12 +0200 |
commit | 7029547647d2d66596b8bb4307500376edad11a9 (patch) | |
tree | 0c3d85c14eef98048041dd57a5513a7490879c9f /src | |
parent | Remove WinMain (diff) | |
download | nheko-7029547647d2d66596b8bb4307500376edad11a9.tar.xz |
Link XCB always if X11 support is on
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/NhekoGlobalObject.cpp | 4 |
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 } |