summary refs log tree commit diff
path: root/src/ui/NhekoGlobalObject.cpp
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2023-02-15 23:07:16 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2023-02-15 23:44:50 +0100
commit60606133cbe7593f794ca9eae6e3dfe5b25f2a27 (patch)
tree8c1591c22e5bde47a1f80839e118813fb70e5dc6 /src/ui/NhekoGlobalObject.cpp
parentMerge pull request #1371 from xvitaly/httplib (diff)
downloadnheko-60606133cbe7593f794ca9eae6e3dfe5b25f2a27.tar.xz
Fix build on macOS
Diffstat (limited to '')
-rw-r--r--src/ui/NhekoGlobalObject.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ui/NhekoGlobalObject.cpp b/src/ui/NhekoGlobalObject.cpp
index dcfaecf8..5e3c55c1 100644
--- a/src/ui/NhekoGlobalObject.cpp
+++ b/src/ui/NhekoGlobalObject.cpp
@@ -11,7 +11,11 @@
 #include <QStyle>
 #include <QUrl>
 #include <QWindow>
+
+// for some reason that is not installed in our macOS env...
+#ifndef Q_OS_MAC
 #include <QtPlatformHeaders/QXcbWindowFunctions>
+#endif
 
 #include "Cache_p.h"
 #include "ChatPage.h"
@@ -182,7 +186,9 @@ Nheko::createRoom(bool space,
 }
 
 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());
+#endif
 }