🪲 Fix yet another incompatibility with the Magic Lamp
Deploy / Bundle GNOME Shell Extension (push) Has been cancelled
Deploy / Bundle KWin Effect (push) Has been cancelled

This commit is contained in:
Simon Schneegans
2023-04-08 10:17:10 +02:00
parent 84bd93bd2c
commit aca3c34142
2 changed files with 11 additions and 3 deletions
+3 -3
View File
@@ -166,9 +166,9 @@ class Extension {
// if this breaks stuff left and right...
// https://gitlab.gnome.org/GNOME/gnome-shell/-/blob/main/js/ui/windowManager.js#L1120
Main.wm._shouldAnimateActor = function(actor, types) {
const caller = (new Error()).stack.split('\n')[1];
const forClosing = caller.includes('_destroyWindow@');
const forOpening = caller.includes('_mapWindow@');
const stack = (new Error()).stack;
const forClosing = stack.includes('_destroyWindow@');
const forOpening = stack.includes('_mapWindow@');
// This is also called in other cases, for instance when minimizing windows. We are
// only interested in window opening and window closing for now.