diff --git a/src/client/compositor.cpp b/src/client/compositor.cpp --- a/src/client/compositor.cpp +++ b/src/client/compositor.cpp @@ -56,9 +56,6 @@ Compositor *Compositor::fromApplication(QObject *parent) { - if (!QGuiApplication::platformName().contains(QStringLiteral("wayland"), Qt::CaseInsensitive)) { - return nullptr; - } QPlatformNativeInterface *native = qApp->platformNativeInterface(); if (!native) { return nullptr; diff --git a/src/client/connection_thread.cpp b/src/client/connection_thread.cpp --- a/src/client/connection_thread.cpp +++ b/src/client/connection_thread.cpp @@ -212,9 +212,6 @@ ConnectionThread *ConnectionThread::fromApplication(QObject *parent) { - if (!QGuiApplication::platformName().contains(QStringLiteral("wayland"), Qt::CaseInsensitive)) { - return nullptr; - } QPlatformNativeInterface *native = qApp->platformNativeInterface(); if (!native) { return nullptr; diff --git a/src/client/shell.cpp b/src/client/shell.cpp --- a/src/client/shell.cpp +++ b/src/client/shell.cpp @@ -164,9 +164,6 @@ if (!window) { return nullptr; } - if (!QGuiApplication::platformName().contains(QStringLiteral("wayland"), Qt::CaseInsensitive)) { - return nullptr; - } QPlatformNativeInterface *native = qApp->platformNativeInterface(); if (!native) { return nullptr; diff --git a/src/client/surface.cpp b/src/client/surface.cpp --- a/src/client/surface.cpp +++ b/src/client/surface.cpp @@ -88,9 +88,6 @@ if (!window) { return nullptr; } - if (!QGuiApplication::platformName().contains(QStringLiteral("wayland"), Qt::CaseInsensitive)) { - return nullptr; - } QPlatformNativeInterface *native = qApp->platformNativeInterface(); if (!native) { return nullptr;