mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-07 13:29:49 -05:00
xdg-popup: don't emit parent's new_popup signal too early
(cherry picked from commit e7deea44fd)
This commit is contained in:
parent
d4e1c4d915
commit
9915b1c3ee
1 changed files with 4 additions and 1 deletions
|
|
@ -420,12 +420,15 @@ void create_xdg_popup(struct wlr_xdg_surface *surface,
|
|||
if (parent) {
|
||||
surface->popup->parent = parent->surface;
|
||||
wl_list_insert(&parent->popups, &surface->popup->link);
|
||||
wl_signal_emit_mutable(&parent->events.new_popup, surface->popup);
|
||||
} else {
|
||||
wl_list_init(&surface->popup->link);
|
||||
}
|
||||
|
||||
set_xdg_surface_role_object(surface, surface->popup->resource);
|
||||
|
||||
if (parent) {
|
||||
wl_signal_emit_mutable(&parent->events.new_popup, surface->popup);
|
||||
}
|
||||
}
|
||||
|
||||
void reset_xdg_popup(struct wlr_xdg_popup *popup) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue