x11: Gracefully handle failed compositing initialization
X11Platform includes NoCompositing in supported compositing types. Therefore, Q_UNREACHABLE() cannot be used.
This commit is contained in:
parent
8b8669eece
commit
12b14779ba
1 changed files with 2 additions and 1 deletions
|
@ -211,7 +211,8 @@ bool Compositor::setupStart()
|
|||
qCDebug(KWIN_CORE) << "Attempting to load the QPainter scene";
|
||||
break;
|
||||
case NoCompositing:
|
||||
Q_UNREACHABLE();
|
||||
qCDebug(KWIN_CORE) << "Starting without compositing...";
|
||||
break;
|
||||
}
|
||||
const auto pluginIt = std::find_if(availablePlugins.begin(), availablePlugins.end(),
|
||||
[type] (const auto &plugin) {
|
||||
|
|
Loading…
Reference in a new issue