Skip to content

Give each menu button its own popover - #219

Merged
sonnyp merged 1 commit into
sonnyp:mainfrom
geodro:menu-button-popover
Aug 20, 2026
Merged

Give each menu button its own popover#219
sonnyp merged 1 commit into
sonnyp:mainfrom
geodro:menu-button-popover

Conversation

@geodro

@geodro geodro commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Split out of #218 as requested.

Both MenuButtons pointed at a single shared PopoverMenu instance. A GtkPopover can only have one parent, so GTK reparented it and logged gtk_widget_set_parent criticals on every launch. On Plasma the visible symptoms were a stray arrow pointing at the hidden header button, and the menu opening by itself.

Each button now uses menu-model: and gets its own correctly parented popover from the same GMenu. The criticals go from one per launch to zero.

Both MenuButtons pointed at a single shared PopoverMenu instance. A
GtkPopover can only have one parent, so GTK reparented it and logged
gtk_widget_set_parent criticals on every launch. On Plasma the visible
symptoms were a stray arrow pointing at the hidden header button, and
the menu opening by itself.

Each button now uses menu-model: and gets its own correctly parented
popover from the same GMenu. The criticals go from one per launch to
zero.
@sonnyp
sonnyp merged commit fe196a9 into sonnyp:main Aug 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants