Commit f823be57 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Make Compositor more verbose

In order to help with debugging why the OpenGL scene is not loaded,
it can be really helpful to know what scenes the Compositor attempts to

Test Plan: Ran kwin with QT_LOGGING_RULES="*.debug=true".

Reviewers: #kwin, davidedmundson

Reviewed By: #kwin, davidedmundson

Subscribers: kwin

Tags: #kwin

Differential Revision:
parent fd106de6
...@@ -221,7 +221,25 @@ bool Compositor::setupStart() ...@@ -221,7 +221,25 @@ bool Compositor::setupStart()
const auto availablePlugins = KPluginLoader::findPlugins(QStringLiteral("org.kde.kwin.scenes")); const auto availablePlugins = KPluginLoader::findPlugins(QStringLiteral("org.kde.kwin.scenes"));
for (const KPluginMetaData &pluginMetaData : availablePlugins) {
qCDebug(KWIN_CORE) << "Available scene plugin:" << pluginMetaData.fileName();
for (auto type : qAsConst(supportedCompositors)) { for (auto type : qAsConst(supportedCompositors)) {
switch (type) {
case XRenderCompositing:
qCDebug(KWIN_CORE) << "Attempting to load the XRender scene";
case OpenGLCompositing:
case OpenGL2Compositing:
qCDebug(KWIN_CORE) << "Attempting to load the OpenGL scene";
case QPainterCompositing:
qCDebug(KWIN_CORE) << "Attempting to load the QPainter scene";
case NoCompositing:
const auto pluginIt = std::find_if(availablePlugins.begin(), availablePlugins.end(), const auto pluginIt = std::find_if(availablePlugins.begin(), availablePlugins.end(),
[type] (const auto &plugin) { [type] (const auto &plugin) {
const auto &metaData = plugin.rawData(); const auto &metaData = plugin.rawData();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment