🪲 Fix version test

This commit is contained in:
Simon Schneegans
2022-01-09 13:20:43 +01:00
parent 9e230d4df7
commit 578063f8f8
+2 -2
View File
@@ -209,8 +209,8 @@ class Extension {
} }
// This was called "realWindow" in GNOME 3.36. // This was called "realWindow" in GNOME 3.36.
const GS_336 = GS_MAJOR == 3 && GS_MINOR == 36; const propertyName = utils.shellVersionIs(3, 36) ? 'realWindow' : '_windowActor';
const actor = workspace._windows[index][GS_336 ? 'realWindow' : '_windowActor']; const actor = workspace._windows[index][propertyName];
if (!actor.get_transition('scale-y')) { if (!actor.get_transition('scale-y')) {
return true; return true;
} }