x11: Gracefully handle failed compositing initialization

X11Platform includes NoCompositing in supported compositing types.
Therefore, Q_UNREACHABLE() cannot be used.
This commit is contained in:
Vlad Zahorodnii 2021-07-05 11:53:26 +03:00
parent 8b8669eece
commit 12b14779ba

View file

@ -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) {