Skip to content

Commit

Permalink
Merge pull request #109 from taj-ny/v1-3-2
Browse files Browse the repository at this point in the history
v1.3.2
  • Loading branch information
taj-ny authored Sep 24, 2024
2 parents 4500adb + aea18ec commit 4ca19d2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.16.0)

project(kwin_better_blur)
set(PROJECT_VERSION "1.3.1")
set(PROJECT_VERSION "1.3.2")
set(PROJECT_VERSION_MAJOR 0)

set(KF_MIN_VERSION "5.240.0")
Expand Down
2 changes: 1 addition & 1 deletion package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

stdenv.mkDerivation rec {
pname = "kwin-better-blur";
version = "1.3.1";
version = "1.3.2";

src = ./.;

Expand Down
4 changes: 2 additions & 2 deletions src/blur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ QRegion BlurEffect::decorationBlurRegion(const EffectWindow *w) const
return QRegion();
}

QRegion decorationRegion = QRegion(w->decoration()->rect()) - w->decorationInnerRect().toRect();
QRegion decorationRegion = QRegion(w->decoration()->rect()) - w->contentsRect().toRect();
//! we return only blurred regions that belong to decoration region
return decorationRegion.intersected(w->decoration()->blurRegion());
}
Expand All @@ -588,7 +588,7 @@ QRegion BlurEffect::blurRegion(EffectWindow *w) const
if (frame.has_value()) {
region = frame.value();
}
region += content->translated(w->contentsRect().topLeft().toPoint()) & w->decorationInnerRect().toRect();
region += content->translated(w->contentsRect().topLeft().toPoint()) & w->contentsRect().toRect();
}
} else if (frame.has_value()) {
region = frame.value();
Expand Down

0 comments on commit 4ca19d2

Please sign in to comment.