From 4e1f85f19be133ca5d4f9ef6f7293cdc18652c4b Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Mon, 10 Mar 2025 16:15:10 -0400 Subject: [PATCH] Center system menu relative to its panel button gh-2272 --- src/panel.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/panel.js b/src/panel.js index 7c42642..a91220d 100644 --- a/src/panel.js +++ b/src/panel.js @@ -1104,6 +1104,12 @@ export const Panel = GObject.registerClass( this._setVertical(this.panel, this.checkIfVertical()) + // center the system menu popup relative to its panel button + if (this.statusArea.quickSettings?.menu) { + this.statusArea.quickSettings.menu._arrowSide = this.geom.position + this.statusArea.quickSettings.menu._arrowAlignment = 0.5 + } + // styles for theming Object.keys(St.Side).forEach((p) => { let cssName = 'dashtopanel' + p.charAt(0) + p.slice(1).toLowerCase()