Fix initial intellihide chrome not set on g-s 49

gh-2388
This commit is contained in:
Charles Gagnon
2025-09-26 15:24:09 -04:00
parent 134f6f9911
commit 1ac39b72b8
3 changed files with 8 additions and 0 deletions

View File

@@ -73,6 +73,9 @@ export const Intellihide = class {
)
this.enabled = false
}
init() {
this._changeEnabledStatus()
}

View File

@@ -730,6 +730,8 @@ export const Panel = GObject.registerClass(
this.taskbar.resetAppIcons(true)
this.dynamicTransparency.updateExternalStyle()
if (this.intellihide?.enabled) this.intellihide.reset()
if (this.geom.vertical) {
this.showAppsIconWrapper.realShowAppsIcon.toggleButton.set_width(
this.geom.innerSize,

View File

@@ -695,6 +695,9 @@ export const PanelManager = class {
affectsStruts: true,
})
// intellihide changes the chrome when enabled, so init after setting initial chrome params
panel.intellihide.init()
this._findPanelMenuButtons(panelBox).forEach((pmb) =>
this._adjustPanelMenuButton(pmb, monitor, panel.geom.position),
)