From 15560abad7468f73b83de8d65e238d18342f2b9f Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Sat, 9 Sep 2023 05:52:15 +0200 Subject: [PATCH] :beetle: Fix Doom effect --- src/effects/Doom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/effects/Doom.js b/src/effects/Doom.js index bbe7088..be02ff6 100644 --- a/src/effects/Doom.js +++ b/src/effects/Doom.js @@ -102,7 +102,7 @@ export default class Effect { // bounds of the actor. This only works for GNOME 3.38+. // For this effect, we scale the actor vertically so that it covers the entire screen. // This ensures that the melted window will not be cut off. - getActorScale(settings, forOpening, actor) { + static getActorScale(settings, forOpening, actor) { let actorScale = 2.0 * Math.max(1.0, global.stage.height / actor.height); return {x: 1.0, y: actorScale}; }