From f70951ef76daa247c9760493cc7ca35fae33b8a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Thu, 15 May 2014 09:19:21 +0200 Subject: [PATCH] [Compositor] Improve debug output for compositing suspended Map the flags to a user readable name. BUG: 334558 REVIEW: 118140 --- composite.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/composite.cpp b/composite.cpp index 81079c47a2..f0d680f29b 100644 --- a/composite.cpp +++ b/composite.cpp @@ -143,7 +143,17 @@ void Compositor::setup() if (hasScene()) return; if (m_suspended) { - qDebug() << "Compositing is suspended, reason:" << m_suspended; + QStringList reasons; + if (m_suspended & UserSuspend) { + reasons << QStringLiteral("Disabled by User"); + } + if (m_suspended & BlockRuleSuspend) { + reasons << QStringLiteral("Disabled by Window"); + } + if (m_suspended & ScriptSuspend) { + reasons << QStringLiteral("Disabled by Script"); + } + qDebug() << "Compositing is suspended, reason:" << reasons; return; } else if (!CompositingPrefs::compositingPossible()) { qCritical() << "Compositing is not possible";