Skip to content

Give each menu button its own popover - #219

Open
geodro wants to merge 1 commit into
sonnyp:mainfrom
geodro:menu-button-popover
Open

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

Conversation

@geodro

@geodro geodro commented Aug 4, 2026

Copy link
Copy Markdown

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.
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.

1 participant