From b30e81cb22d604146a20ca556b14018dd9a98bf2 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 28 Oct 2022 09:38:38 +0000 Subject: [PATCH] x11: Keep compositing mode untouched if kwin crashes kwin can crash for reasons that have nothing to do with compositing. If that's the case, after two crashes compositing will be permanently disabled and you would need to go to system settings to reenable it, the timestamp based check in the x11 backend won't be effective. CCBUG: 452344 --- src/main_x11.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main_x11.cpp b/src/main_x11.cpp index 66e0341f1c..f00aff8279 100644 --- a/src/main_x11.cpp +++ b/src/main_x11.cpp @@ -299,12 +299,6 @@ void ApplicationX11::crashChecking() system(buf); ::exit(1); } - if (crashes >= 2) { - // Disable compositing if we have had too many crashes - qCDebug(KWIN_CORE) << "Too many crashes recently, disabling compositing"; - KConfigGroup compgroup(KSharedConfig::openConfig(), "Compositing"); - compgroup.writeEntry("Enabled", false); - } // Reset crashes count if we stay up for more that 15 seconds QTimer::singleShot(15 * 1000, this, &Application::resetCrashesCount); }