added Q_OS_UNIX to ifdef guard around set_wm_class

This commit is contained in:
Joakim L. Gilje
2023-11-22 08:22:46 +01:00
parent aeb44f1c5c
commit bea98c0e2c

View File

@@ -718,7 +718,7 @@ MainWindow::MainWindow(QWidget *parent)
{}
#endif
#if !defined Q_OS_MACOS && !defined Q_OS_HAIKU
#if defined Q_OS_UNIX && !defined Q_OS_MACOS && !defined Q_OS_HAIKU
if (QApplication::platformName().contains("xcb")) {
QTimer::singleShot(0, this, [this] {
auto whandle = windowHandle();