diff --git a/main.cpp b/main.cpp --- a/main.cpp +++ b/main.cpp @@ -48,7 +48,8 @@ #include #include #include -#include +#include +#include // system #ifdef HAVE_UNISTD_H @@ -257,17 +258,6 @@ KLocalizedString::setApplicationDomain("kwin"); } -void Application::notifyKSplash() -{ - // Tell KSplash that KWin has started - QDBusMessage ksplashProgressMessage = QDBusMessage::createMethodCall(QStringLiteral("org.kde.KSplash"), - QStringLiteral("/KSplash"), - QStringLiteral("org.kde.KSplash"), - QStringLiteral("setStage")); - ksplashProgressMessage.setArguments(QList() << QStringLiteral("wm")); - QDBusConnection::sessionBus().asyncCall(ksplashProgressMessage); -} - void Application::createWorkspace() { // we want all QQuickWindows with an alpha buffer, do here as Workspace might create QQuickWindows diff --git a/main_wayland.cpp b/main_wayland.cpp --- a/main_wayland.cpp +++ b/main_wayland.cpp @@ -191,7 +191,6 @@ } startSession(); createWorkspace(); - notifyKSplash(); } void ApplicationWayland::continueStartupWithScene() diff --git a/main_x11.h b/main_x11.h --- a/main_x11.h +++ b/main_x11.h @@ -45,6 +45,7 @@ private: void crashChecking(); void setupCrashHandler(); + void notifyKSplash(); static void crashHandler(int signal); diff --git a/main_x11.cpp b/main_x11.cpp --- a/main_x11.cpp +++ b/main_x11.cpp @@ -47,6 +47,7 @@ #include #include #include +#include // system #ifdef HAVE_UNISTD_H @@ -313,6 +314,17 @@ QTimer::singleShot(15 * 1000, this, SLOT(resetCrashesCount())); } +void ApplicationX11::notifyKSplash() +{ + // Tell KSplash that KWin has started + QDBusMessage ksplashProgressMessage = QDBusMessage::createMethodCall(QStringLiteral("org.kde.KSplash"), + QStringLiteral("/KSplash"), + QStringLiteral("org.kde.KSplash"), + QStringLiteral("setStage")); + ksplashProgressMessage.setArguments(QList() << QStringLiteral("wm")); + QDBusConnection::sessionBus().asyncCall(ksplashProgressMessage); +} + void ApplicationX11::crashHandler(int signal) { crashes++;