From 20399e0c42c86005d33e8d5997e93ee21f535028 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Wed, 9 Feb 2022 11:46:59 +0200 Subject: [PATCH] effects/scale: Make it not grab open and close roles Otherwise the fall apart effect will refuse to work; the fade effect already works like that. BUG: 449832 --- src/effects/scale/package/contents/code/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/effects/scale/package/contents/code/main.js b/src/effects/scale/package/contents/code/main.js index ef6e3a526b..eb97629b0e 100644 --- a/src/effects/scale/package/contents/code/main.js +++ b/src/effects/scale/package/contents/code/main.js @@ -96,7 +96,7 @@ class ScaleEffect { if (!window.visible) { return; } - if (!effect.grab(window, Effect.WindowAddedGrabRole)) { + if (effect.isGrabbed(window, Effect.WindowAddedGrabRole)) { return; } this.setupForcedRoles(window); @@ -127,7 +127,7 @@ class ScaleEffect { if (!window.visible || window.skipsCloseAnimation) { return; } - if (!effect.grab(window, Effect.WindowClosedGrabRole)) { + if (effect.isGrabbed(window, Effect.WindowClosedGrabRole)) { return; } if (window.scaleInAnimation) {