From 11e8b91cb0d14318e17e152c91bd959731ad0edb Mon Sep 17 00:00:00 2001 From: Aleix Pol Gonzalez Date: Wed, 7 Jun 2023 17:27:53 +0200 Subject: [PATCH] Composite: Enforce KWIN_COMPOSE Don't fall back into other composition systems if KWIN_COMPOSE is explicitly set. In such case, just exit(). Signed-off-by: Victoria Fischer --- src/composite.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/composite.cpp b/src/composite.cpp index 883f76c1a0..734e2fe096 100644 --- a/src/composite.cpp +++ b/src/composite.cpp @@ -289,6 +289,9 @@ bool Compositor::setupStart() if (stop) { break; + } else if (qEnvironmentVariableIsSet("KWIN_COMPOSE")) { + qCCritical(KWIN_CORE) << "Could not fulfill the requested compositing mode in KWIN_COMPOSE:" << type << ". Exiting."; + qApp->quit(); } }