Merge branch 'home-sweet-gnome:master' into master

This commit is contained in:
Adam Lewicki
2025-09-28 09:04:02 +02:00
committed by GitHub
4 changed files with 18 additions and 6 deletions

View File

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

View File

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

View File

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

View File

@@ -313,7 +313,6 @@ export const PreviewMenu = GObject.registerClass(
_setReactive(reactive) { _setReactive(reactive) {
this._box.get_children().forEach((c) => (c.reactive = reactive)) this._box.get_children().forEach((c) => (c.reactive = reactive))
this.menu.reactive = reactive
} }
_setOpenedState(opened) { _setOpenedState(opened) {
@@ -419,7 +418,7 @@ export const PreviewMenu = GObject.registerClass(
_onHoverChanged() { _onHoverChanged() {
this._endOpenCloseTimeouts() this._endOpenCloseTimeouts()
if (this.currentAppIcon && !this.menu.hover) { if (this.currentAppIcon && !this.menu.hover && !this.hasGrab) {
this._addCloseTimeout() this._addCloseTimeout()
this._endPeek() this._endPeek()
} }
@@ -1132,6 +1131,8 @@ export const Preview = GObject.registerClass(
this._previewMenu.peekInitialWorkspaceIndex, this._previewMenu.peekInitialWorkspaceIndex,
) )
this._previewMenu.hasGrab = true
Main.wm._showWindowMenu(null, this.window, Meta.WindowMenuType.WM, { Main.wm._showWindowMenu(null, this.window, Meta.WindowMenuType.WM, {
x: coords[0], x: coords[0],
y: coords[1], y: coords[1],
@@ -1141,10 +1142,13 @@ export const Preview = GObject.registerClass(
let menu = Main.wm._windowMenuManager._manager._menus[0] let menu = Main.wm._windowMenuManager._manager._menus[0]
menu.connect('open-state-changed', () => menu.connect('open-state-changed', (menu, opened) => {
this._previewMenu.menu.sync_hover(), if (!opened) {
) delete this._previewMenu.hasGrab
this._previewMenu.menu.sync_hover()
if (!this._previewMenu.menu.hover) this._previewMenu.close()
}
})
if (this.window.get_workspace() != currentWorkspace) { if (this.window.get_workspace() != currentWorkspace) {
let menuItem = new PopupMenu.PopupMenuItem( let menuItem = new PopupMenu.PopupMenuItem(