Skip to content

Commit

Permalink
Destroy panel barriers on shutdown
Browse files Browse the repository at this point in the history
It was being leaked, which is detected on mutter shutdown and caused SIGABRT in the Xorg session.
  • Loading branch information
City-busz committed Dec 28, 2024
1 parent bbb85f6 commit 67ef2dd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions panelManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 67ef2dd

Please sign in to comment.