From 578063f8f82cd3a92e8b28dae67e0ef0d1e55f27 Mon Sep 17 00:00:00 2001 From: Simon Schneegans Date: Sun, 9 Jan 2022 13:20:43 +0100 Subject: [PATCH] :beetle: Fix version test --- extension.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension.js b/extension.js index 8138194..1ec8db1 100644 --- a/extension.js +++ b/extension.js @@ -209,8 +209,8 @@ class Extension { } // This was called "realWindow" in GNOME 3.36. - const GS_336 = GS_MAJOR == 3 && GS_MINOR == 36; - const actor = workspace._windows[index][GS_336 ? 'realWindow' : '_windowActor']; + const propertyName = utils.shellVersionIs(3, 36) ? 'realWindow' : '_windowActor'; + const actor = workspace._windows[index][propertyName]; if (!actor.get_transition('scale-y')) { return true; }