Skip to content

Commit

Permalink
Merge pull request #156 from taj-ny/static-blur-opacity-fix
Browse files Browse the repository at this point in the history
static-blur: don't make window opaque when opacity affects blur
  • Loading branch information
taj-ny authored Jan 2, 2025
2 parents 1f6410e + 0736f9a commit 078822e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/blur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,9 @@ void BlurEffect::prePaintWindow(EffectWindow *w, WindowPrePaintData &data, std::

bool staticBlur = hasStaticBlur(w) && m_staticBlurTextures.contains(m_currentScreen) && !blurArea.isEmpty();
if (staticBlur) {
data.opaque += blurArea;
if (!m_settings.general.windowOpacityAffectsBlur) {
data.opaque += blurArea;
}

int topCornerRadius;
int bottomCornerRadius;
Expand Down

0 comments on commit 078822e

Please sign in to comment.