Merge branch 'Plasma/5.18'

This commit is contained in:
Vlad Zahorodnii 2020-03-19 16:41:09 +02:00
commit c0c693efb3

View file

@ -800,6 +800,7 @@ bool SceneOpenGL::viewportLimitsMatched(const QSize &size) const {
if (limit[0] < size.width() || limit[1] < size.height()) {
auto compositor = static_cast<X11Compositor*>(Compositor::self());
QMetaObject::invokeMethod(compositor, [compositor]() {
qCDebug(KWIN_OPENGL) << "Suspending compositing because viewport limits are not met";
compositor->suspend(X11Compositor::AllReasonSuspend);
}, Qt::QueuedConnection);
return false;