Merge branch 'Plasma/5.18'
This commit is contained in:
commit
c0c693efb3
1 changed files with 3 additions and 2 deletions
|
@ -800,8 +800,9 @@ bool SceneOpenGL::viewportLimitsMatched(const QSize &size) const {
|
||||||
if (limit[0] < size.width() || limit[1] < size.height()) {
|
if (limit[0] < size.width() || limit[1] < size.height()) {
|
||||||
auto compositor = static_cast<X11Compositor*>(Compositor::self());
|
auto compositor = static_cast<X11Compositor*>(Compositor::self());
|
||||||
QMetaObject::invokeMethod(compositor, [compositor]() {
|
QMetaObject::invokeMethod(compositor, [compositor]() {
|
||||||
compositor->suspend(X11Compositor::AllReasonSuspend);
|
qCDebug(KWIN_OPENGL) << "Suspending compositing because viewport limits are not met";
|
||||||
}, Qt::QueuedConnection);
|
compositor->suspend(X11Compositor::AllReasonSuspend);
|
||||||
|
}, Qt::QueuedConnection);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue