From a4e6570b057b1f406e2c1d31e36d86763632a063 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Sun, 7 Mar 2021 08:10:12 +0200 Subject: [PATCH] update mask properly for !compositing case BUG:433887 --- app/view/effects.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/view/effects.cpp b/app/view/effects.cpp index d9f7708d9..94d91c5c0 100644 --- a/app/view/effects.cpp +++ b/app/view/effects.cpp @@ -68,7 +68,13 @@ void Effects::init() connect(m_view, &QQuickWindow::widthChanged, this, &Effects::updateMask); connect(m_view, &QQuickWindow::heightChanged, this, &Effects::updateMask); connect(m_view, &Latte::View::behaveAsPlasmaPanelChanged, this, &Effects::updateMask); - connect(KWindowSystem::self(), &KWindowSystem::compositingChanged, this, &Effects::updateMask); + connect(KWindowSystem::self(), &KWindowSystem::compositingChanged, this, [&]() { + if (!KWindowSystem::compositingActive() && !m_view->behaveAsPlasmaPanel()) { + setMask(m_rect); + } + + updateMask(); + }); connect(this, &Effects::rectChanged, this, [&]() { if (!KWindowSystem::compositingActive() && !m_view->behaveAsPlasmaPanel()) {