mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 03:00:46 +03:00
Fix build on macOS
This commit is contained in:
parent
59b5df479e
commit
60606133cb
1 changed files with 7 additions and 1 deletions
|
@ -11,7 +11,11 @@
|
||||||
#include <QStyle>
|
#include <QStyle>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QWindow>
|
#include <QWindow>
|
||||||
|
|
||||||
|
// for some reason that is not installed in our macOS env...
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
#include <QtPlatformHeaders/QXcbWindowFunctions>
|
#include <QtPlatformHeaders/QXcbWindowFunctions>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "Cache_p.h"
|
#include "Cache_p.h"
|
||||||
#include "ChatPage.h"
|
#include "ChatPage.h"
|
||||||
|
@ -182,7 +186,9 @@ Nheko::createRoom(bool space,
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
Nheko::setWindowRole(QWindow *win, QString newRole) const
|
Nheko::setWindowRole([[maybe_unused]] QWindow *win, [[maybe_unused]] QString newRole) const
|
||||||
{
|
{
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
QXcbWindowFunctions::setWmWindowRole(win, newRole.toUtf8());
|
QXcbWindowFunctions::setWmWindowRole(win, newRole.toUtf8());
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue