mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
detatch resize handler on destroy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user