From c38897af71d7ce346073695c83f311ec82f8602a Mon Sep 17 00:00:00 2001 From: Jin Liu Date: Wed, 25 Sep 2024 16:51:06 +0800 Subject: [PATCH] Effect: synchronize `DataRole` between effecthandler.h and scriptedeffect.h --- src/scripting/scriptedeffect.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/scripting/scriptedeffect.h b/src/scripting/scriptedeffect.h index 8ef3157976..cba72399cd 100644 --- a/src/scripting/scriptedeffect.h +++ b/src/scripting/scriptedeffect.h @@ -45,7 +45,7 @@ class KWIN_EXPORT ScriptedEffect : public KWin::AnimationEffect Q_PROPERTY(bool isActiveFullScreenEffect READ isActiveFullScreenEffect NOTIFY isActiveFullScreenEffectChanged) public: - // copied from kwineffects.h + // copied from effecthandler.h enum DataRole { // Grab roles are used to force all other animations to ignore the window. // The value of the data is set to the Effect's `this` value. @@ -54,9 +54,7 @@ public: WindowMinimizedGrabRole, WindowUnminimizedGrabRole, WindowForceBlurRole, ///< For fullscreen effects to enforce blurring of windows, - WindowBlurBehindRole, ///< For single windows to blur behind WindowForceBackgroundContrastRole, ///< For fullscreen effects to enforce the background contrast, - WindowBackgroundContrastRole, ///< For single windows to enable Background contrast }; enum EasingCurve { GaussianCurve = 128