update mask properly for !compositing case

BUG:433887
work/spdx
Michail Vourlakos 4 years ago
parent b940d4df72
commit a4e6570b05

@ -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()) {

Loading…
Cancel
Save