Skip to content

Commit

Permalink
Merge pull request #14 from taj-ny/develop
Browse files Browse the repository at this point in the history
v1.1.1
  • Loading branch information
taj-ny authored Mar 10, 2024
2 parents f93eeff + c8e2bc0 commit d3a8ab5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 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(forceblur)
set(PROJECT_VERSION "1.1.0")
set(PROJECT_VERSION "1.1.1")
set(PROJECT_VERSION_MAJOR 0)

set(KF_MIN_VERSION "5.240.0")
Expand Down
6 changes: 3 additions & 3 deletions src/blur.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ void BlurEffect::slotWindowAdded(EffectWindow *w)
});
}

windowFrameGeometryChangedConnections[w] = connect(w, &EffectWindow::windowFrameGeometryChanged, this, [this,w]() {
windowExpandedGeometryChangedConnections[w] = connect(w, &EffectWindow::windowExpandedGeometryChanged, this, [this,w]() {
if (w) {
updateBlurRegion(w);
}
Expand All @@ -352,9 +352,9 @@ void BlurEffect::slotWindowDeleted(EffectWindow *w)
disconnect(*it);
windowBlurChangedConnections.erase(it);
}
if (auto it = windowFrameGeometryChangedConnections.find(w); it != windowFrameGeometryChangedConnections.end()) {
if (auto it = windowExpandedGeometryChangedConnections.find(w); it != windowExpandedGeometryChangedConnections.end()) {
disconnect(*it);
windowFrameGeometryChangedConnections.erase(it);
windowExpandedGeometryChangedConnections.erase(it);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/blur.h
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public Q_SLOTS:
QList<BlurValuesStruct> blurStrengthValues;

QMap<EffectWindow *, QMetaObject::Connection> windowBlurChangedConnections;
QMap<EffectWindow *, QMetaObject::Connection> windowFrameGeometryChangedConnections;
QMap<EffectWindow *, QMetaObject::Connection> windowExpandedGeometryChangedConnections;
std::unordered_map<EffectWindow *, BlurEffectData> m_windows;

static BlurManagerInterface *s_blurManager;
Expand Down
5 changes: 5 additions & 0 deletions src/metadata.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"KPlugin": {
"Authors": [
{
"Name": "taj_ny"
}
],
"Category": "Appearance",
"Description": "Blurs the background behind semi-transparent windows",
"EnabledByDefault": false,
Expand Down

0 comments on commit d3a8ab5

Please sign in to comment.