diff --git a/src/xwayland/xwaylandlauncher.cpp b/src/xwayland/xwaylandlauncher.cpp index 33f7a69e37..7889d4465e 100644 --- a/src/xwayland/xwaylandlauncher.cpp +++ b/src/xwayland/xwaylandlauncher.cpp @@ -256,20 +256,8 @@ void XwaylandLauncher::maybeDestroyReadyNotifier() void XwaylandLauncher::handleXwaylandFinished(int exitCode, QProcess::ExitStatus exitStatus) { - qCDebug(KWIN_XWL) << "Xwayland process has quit with exit code" << exitCode; + qCDebug(KWIN_XWL) << "Xwayland process has quit with exit status:" << exitStatus << "exit code:" << exitCode; - switch (exitStatus) { - case QProcess::NormalExit: - stop(); - break; - case QProcess::CrashExit: - handleXwaylandCrashed(); - break; - } -} - -void XwaylandLauncher::handleXwaylandCrashed() -{ #if KWIN_BUILD_NOTIFICATIONS KNotification::event(QStringLiteral("xwaylandcrash"), i18n("Xwayland has crashed")); #endif diff --git a/src/xwayland/xwaylandlauncher.h b/src/xwayland/xwaylandlauncher.h index e7c99668f4..79c227b3df 100644 --- a/src/xwayland/xwaylandlauncher.h +++ b/src/xwayland/xwaylandlauncher.h @@ -86,7 +86,6 @@ Q_SIGNALS: private Q_SLOTS: void resetCrashCount(); void handleXwaylandFinished(int exitCode, QProcess::ExitStatus exitStatus); - void handleXwaylandCrashed(); void handleXwaylandError(QProcess::ProcessError error); private: