mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Fix incorrect geometry when manually enabling the extension
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user