Skip to content

Commit

Permalink
Merge pull request #179 from taj-ny/force-blur-blacklist
Browse files Browse the repository at this point in the history
force-blur: ignore xwaylandvideobridge and spectacle's overlays
  • Loading branch information
taj-ny authored Jan 28, 2025
2 parents 25143a0 + def13fb commit 57cca18
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/blur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,14 @@ bool BlurEffect::shouldBlur(const EffectWindow *w, int mask, const WindowPaintDa

bool BlurEffect::shouldForceBlur(const EffectWindow *w) const
{
if (w->isDesktop() || (!m_settings.forceBlur.blurDocks && w->isDock()) || (!m_settings.forceBlur.blurMenus && isMenu(w))) {
const auto windowClass = w->window()->resourceClass();
const auto layer = w->window()->layer();
if (w->isDesktop()
|| (!m_settings.forceBlur.blurDocks && w->isDock())
|| (!m_settings.forceBlur.blurMenus && isMenu(w))
|| windowClass == "xwaylandvideobridge"
|| ((windowClass == "spectacle" || windowClass == "org.kde.spectacle")
&& (layer == Layer::OverlayLayer || layer == Layer::ActiveLayer))) {
return false;
}

Expand Down

0 comments on commit 57cca18

Please sign in to comment.