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
This commit is contained in:
parent
fd978838cc
commit
b30e81cb22
1 changed files with 0 additions and 6 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue