From 12b14779ba2ca47e22be6d0639accc1c615fceb6 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Mon, 5 Jul 2021 11:53:26 +0300 Subject: [PATCH] x11: Gracefully handle failed compositing initialization X11Platform includes NoCompositing in supported compositing types. Therefore, Q_UNREACHABLE() cannot be used. --- src/composite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/composite.cpp b/src/composite.cpp index 0d120f6b57..283efc8473 100644 --- a/src/composite.cpp +++ b/src/composite.cpp @@ -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) {