From 646032a99d93e7b17a8f466f9d354a0ffb8a116f Mon Sep 17 00:00:00 2001 From: Vlad Zagorodniy Date: Sun, 23 Sep 2018 16:48:19 +0300 Subject: [PATCH] [effects/morphingpopups] Use enumerators from the DataRole enum Summary: Use Effect.WindowForceBackgroundContrastRole and Effect.WindowForceBlurRole instead of integers to improve readability. Reviewers: #kwin, broulik Reviewed By: broulik Subscribers: kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15709 --- .../morphingpopups/package/contents/code/morphingpopups.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/effects/morphingpopups/package/contents/code/morphingpopups.js b/effects/morphingpopups/package/contents/code/morphingpopups.js index 16040dc2b0..4413f9136e 100644 --- a/effects/morphingpopups/package/contents/code/morphingpopups.js +++ b/effects/morphingpopups/package/contents/code/morphingpopups.js @@ -58,10 +58,8 @@ var morphingEffect = { return; } - //WindowForceBackgroundContrastRole - window.setData(7, true); - //WindowForceBlurRole - window.setData(5, true); + window.setData(Effect.WindowForceBackgroundContrastRole, true); + window.setData(Effect.WindowForceBlurRole, true); var couldRetarget = false;