From 67ef2dde30c687bdccf857792ebc9b1a31480e3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ball=C3=B3=20Gy=C3=B6rgy?= Date: Sun, 30 Jun 2024 01:53:37 +0200 Subject: [PATCH] Destroy panel barriers on shutdown It was being leaked, which is detected on mutter shutdown and caused SIGABRT in the Xorg session. --- panelManager.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/panelManager.js b/panelManager.js index 917c91dd..451ba9bd 100755 --- a/panelManager.js +++ b/panelManager.js @@ -215,9 +215,18 @@ export const PanelManager = class { // keep GS overview.js from blowing away custom panel styles if(!SETTINGS.get_boolean('stockgs-keep-top-panel')) Object.defineProperty(Main.panel, "style", {configurable: true, set(v) {}}); + + this._shutdownId = global.connect('shutdown', () => { + if (this.allPanels) { + this.allPanels.forEach(p => { + this._removePanelBarriers(p); + }); + } + }); } disable(reset) { + global.disconnect(this._shutdownId); this.primaryPanel && this.overview.disable(); this.proximityManager.destroy();