Skip to content

Commit

Permalink
Fix added panel menu button detection
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesg99 committed Apr 4, 2024
1 parent 91caa8b commit 1267526
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions panelManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@ export const PanelManager = class {
[
Main.panel[c],
'child-added',
(parent, child) =>
this.primaryPanel &&
this._adjustPanelMenuButton(this._getPanelMenuButton(child), this.primaryPanel.monitor, this.primaryPanel.getPosition())
(parent, child) => {
this.primaryPanel &&
child instanceof St.Bin &&
this._adjustPanelMenuButton(this._getPanelMenuButton(child.get_first_child()), this.primaryPanel.monitor, this.primaryPanel.getPosition())
}
]
));

Expand Down

0 comments on commit 1267526

Please sign in to comment.