Skip to content

Commit

Permalink
force-blur: ignore xwaylandvideobridge and spectacle's overlays
Browse files Browse the repository at this point in the history
Fixes #171
  • Loading branch information
taj-ny committed Jan 27, 2025
1 parent 25143a0 commit f752d36
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/blur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,13 @@ 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()
|| windowClass == "xwaylandvideobridge"
|| (windowClass.contains("spectacle") && (layer == Layer::OverlayLayer || layer == Layer::ActiveLayer))
|| (!m_settings.forceBlur.blurDocks && w->isDock())
|| (!m_settings.forceBlur.blurMenus && isMenu(w))) {
return false;
}

Expand Down

0 comments on commit f752d36

Please sign in to comment.