Commit fa142dd1 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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


(cherry picked from commit 20399e0c)
parent 9f95798f
Pipeline #135307 passed with stage
in 14 minutes and 21 seconds
......@@ -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) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment