Link XCB always if X11 support is on

This commit is contained in:
Nicolas Werner 2023-06-03 02:45:38 +02:00
parent 3b4daca53e
commit 7029547647
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
3 changed files with 18 additions and 9 deletions

View file

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