Skip to content

Commit

Permalink
blur/static-blur: only invalidate texture on desktop update when the …
Browse files Browse the repository at this point in the history
…source is desktop wallpaper
  • Loading branch information
taj-ny committed Dec 7, 2024
1 parent 4716c35 commit 3c84e7d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/blur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,10 @@ void BlurEffect::prePaintWindow(EffectWindow *w, WindowPrePaintData &data, std::
}
}

if (!m_staticBlurTextures.empty() && w->isDesktop() && w->frameGeometry() == data.paint.boundingRect()) {
if (BetterBlur::Config::fakeBlurImageSourceDesktopWallpaper()
&& !m_staticBlurTextures.empty()
&& w->isDesktop()
&& w->frameGeometry() == data.paint.boundingRect()) {
m_staticBlurTextures.erase(m_currentScreen);
}

Expand Down

0 comments on commit 3c84e7d

Please sign in to comment.