From 93dfce4fb12cb4b06294178888e93f0c936d4c36 Mon Sep 17 00:00:00 2001 From: Charles Gagnon Date: Mon, 10 Mar 2025 11:20:11 -0400 Subject: [PATCH] Fix ArcMenu init after dtp and only child in leftbox gh-2248 --- src/panel.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/panel.js b/src/panel.js index 96edece..7c42642 100644 --- a/src/panel.js +++ b/src/panel.js @@ -531,16 +531,9 @@ export const Panel = GObject.registerClass( let allocationMap = this.allocationMap[pos.element] if (allocationMap.actor) { - let considerActor = - pos.visible && - (pos.element == Pos.DESKTOP_BTN || - allocationMap.actor.get_children().length) + allocationMap.actor.visible = pos.visible - allocationMap.actor.visible = considerActor - - if (!considerActor) { - return - } + if (!pos.visible) return // if the panel length is dynamic, get all visible // elements as a single group