diff --git a/windowPreview.js b/windowPreview.js index 5e5c6c0..a8bc9a7 100644 --- a/windowPreview.js +++ b/windowPreview.js @@ -822,6 +822,13 @@ var thumbnailPreview = new Lang.Class({ _onDestroy: function() { this.window.disconnect(this._titleNotifyId); this._titleNotifyId = 0; + if(this._resizeId) { + let mutterWindow = this.window.get_compositor_private(); + if (mutterWindow) { + mutterWindow.meta_window.disconnect(this._resizeId); + this._resizeId = 0; + } + } } });