From 348e72c56ec7e157cec15d8e27065e4194490d89 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 19 Mar 2020 16:36:09 +0200 Subject: [PATCH] [scenes/opengl] Print a debug message when viewport limits aren't met Summary: This may help with debugging why compositing is suspended. CCBUG: 418951 Test Plan: Compiles. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D28139 --- plugins/scenes/opengl/scene_opengl.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/scenes/opengl/scene_opengl.cpp b/plugins/scenes/opengl/scene_opengl.cpp index d15e503174..36e6499405 100644 --- a/plugins/scenes/opengl/scene_opengl.cpp +++ b/plugins/scenes/opengl/scene_opengl.cpp @@ -800,8 +800,9 @@ bool SceneOpenGL::viewportLimitsMatched(const QSize &size) const { if (limit[0] < size.width() || limit[1] < size.height()) { auto compositor = static_cast(Compositor::self()); QMetaObject::invokeMethod(compositor, [compositor]() { - compositor->suspend(X11Compositor::AllReasonSuspend); - }, Qt::QueuedConnection); + qCDebug(KWIN_OPENGL) << "Suspending compositing because viewport limits are not met"; + compositor->suspend(X11Compositor::AllReasonSuspend); + }, Qt::QueuedConnection); return false; } return true;