Commit c3e84e10 authored by Alex Nemeth's avatar Alex Nemeth
Browse files

[effects/desktopgrid] Enable blur behind windows

Summary: Use the blur effect even when the desktop grid is used.

Test Plan: {F5828458}

Reviewers: davidedmundson, fredrik, #vdg, #kwin, graesslin, ngraham

Reviewed By: #vdg, #kwin, graesslin, ngraham

Subscribers: graesslin, kwin, #kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D12620
parent 424b9ac3
......@@ -162,6 +162,12 @@ void DesktopGridEffect::prePaintScreen(ScreenPrePaintData& data, int time)
if (!activated && timeline.currentValue() == 0 && !(isUsingPresentWindows() && isMotionManagerMovingWindows()))
finish();
}
for (auto const &w : effects->stackingOrder()) {
m_windowForceBlurRoleState[w] = w->data(WindowForceBlurRole).toBool();
w->setData(WindowForceBlurRole, QVariant(true));
}
effects->prePaintScreen(data, time);
}
......@@ -249,6 +255,11 @@ void DesktopGridEffect::postPaintScreen()
}
}
}
for (auto &w : effects->stackingOrder()) {
w->setData(WindowForceBlurRole, m_windowForceBlurRoleState.value(w, false));
}
effects->postPaintScreen();
}
......
......@@ -175,6 +175,9 @@ private:
// Shortcut - needed to toggle the effect
QList<QKeySequence> shortcut;
// State of WindowForceBlurRole before this effect
QMap <EffectWindow*, bool> m_windowForceBlurRoleState;
PresentWindowsEffectProxy* m_proxy;
QList<WindowMotionManager> m_managers;
bool m_usePresentWindows;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment