Fix incorrect geometry when manually enabling the extension

This commit is contained in:
Charles Gagnon
2025-02-18 10:47:06 -05:00
parent 6e7fe8c2c2
commit 3e6c900c67
2 changed files with 2 additions and 4 deletions

View File

@@ -365,6 +365,8 @@ export const Panel = GObject.registerClass(
// most repaint requests don't actually require us to repaint anything.
// This saves significant CPU when repainting the screen.
this.set_offscreen_redirect(Clutter.OffscreenRedirect.ALWAYS)
if (!Main.layoutManager._startingUp) this._resetGeometry()
}
disable() {

View File

@@ -645,10 +645,6 @@ export const PanelManager = class {
this.disable(true)
this.allPanels = []
this.enable(true)
// not ideal, but on startup the panel geometries are updated when the initial
// gnome-shell startup is complete, so simulate this here to update as well
Main.layoutManager.emit('startup-complete')
}
_updatePanelElementPositions() {