Skip to content

Commit

Permalink
[[email protected]] Fix two bugs (#742)
Browse files Browse the repository at this point in the history
1. Fixed a bug in the disable() method where 'this' is not defined resulting in a failure to properly clean up after disabling the extension.
2. Fixed the class register so that it uses a random number in the name to avoid a failure if the extension is re-enabled without a cinnamon restart.
  • Loading branch information
klangman authored Sep 13, 2024
1 parent 7dfa27d commit 8dcdf62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions [email protected]/files/[email protected]/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class CompizWindowsEffectExtension {
effect.destroy();
}
}
});
}, this );
}

onBeginGrabOp(display, screen, window, op) {
Expand Down Expand Up @@ -211,7 +211,7 @@ class CompizWindowsEffectExtension {
}

const WobblyEffect = new Lang.Class({
Name: 'WobblyEffect',
Name: `WobblyEffect_${Math.floor(Math.random() * 100000) + 1}`,
Extends: Clutter.DeformEffect,

_init: function(op) {
Expand Down

0 comments on commit 8dcdf62

Please sign in to comment.