Skip to content

Commit 8dcdf62

Browse files
authored
[compiz-windows-effect@hermes83.github.com] Fix two bugs (#742)
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.
1 parent 7dfa27d commit 8dcdf62

File tree

1 file changed

+2
-2
lines changed
  • compiz-windows-effect@hermes83.github.com/files/compiz-windows-effect@hermes83.github.com

1 file changed

+2
-2
lines changed

compiz-windows-effect@hermes83.github.com/files/compiz-windows-effect@hermes83.github.com/extension.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ class CompizWindowsEffectExtension {
115115
effect.destroy();
116116
}
117117
}
118-
});
118+
}, this );
119119
}
120120

121121
onBeginGrabOp(display, screen, window, op) {
@@ -211,7 +211,7 @@ class CompizWindowsEffectExtension {
211211
}
212212

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

217217
_init: function(op) {

0 commit comments

Comments
 (0)