diff --git a/src/client/blur.cpp b/src/client/blur.cpp index 5ce4acf..fa623f8 100644 --- a/src/client/blur.cpp +++ b/src/client/blur.cpp @@ -1,6 +1,7 @@ /* SPDX-FileCopyrightText: 2015 Martin Gräßlin SPDX-FileCopyrightText: 2015 Marco Martin + SPDX-FileCopyrightText: 2022 KylinSoft Co., Ltd. SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ @@ -146,6 +147,11 @@ void Blur::setRegion(Region *region) org_kde_kwin_blur_set_region(d->blur, *region); } +void Blur::setStrength(uint32_t strength) +{ + org_kde_kwin_blur_set_strength(d->blur, strength); +} + Blur::operator org_kde_kwin_blur *() { return d->blur; diff --git a/src/client/blur.h b/src/client/blur.h index 65b2086..ba9367b 100644 --- a/src/client/blur.h +++ b/src/client/blur.h @@ -1,6 +1,7 @@ /* SPDX-FileCopyrightText: 2015 Martin Gräßlin SPDX-FileCopyrightText: 2015 Marco Martin + SPDX-FileCopyrightText: 2022 KylinSoft Co., Ltd. SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ @@ -177,6 +178,8 @@ public: */ void setRegion(Region *region); + void setStrength(uint32_t strength); + operator org_kde_kwin_blur *(); operator org_kde_kwin_blur *() const;