mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
subcompositor: emit new_subsurface immediately
See https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3608.
This commit is contained in:
parent
43fd3a007e
commit
504b9491f0
1 changed files with 2 additions and 2 deletions
|
@ -289,8 +289,6 @@ void subsurface_handle_parent_commit(struct wlr_subsurface *subsurface) {
|
|||
|
||||
if (!subsurface->added) {
|
||||
subsurface->added = true;
|
||||
wl_signal_emit_mutable(&subsurface->parent->events.new_subsurface,
|
||||
subsurface);
|
||||
subsurface_consider_map(subsurface);
|
||||
}
|
||||
}
|
||||
|
@ -364,6 +362,8 @@ static void subcompositor_handle_get_subsurface(struct wl_client *client,
|
|||
wl_list_init(&subsurface->current.link);
|
||||
wl_list_insert(parent->pending.subsurfaces_above.prev,
|
||||
&subsurface->pending.link);
|
||||
|
||||
wl_signal_emit_mutable(&subsurface->parent->events.new_subsurface, subsurface);
|
||||
}
|
||||
|
||||
static const struct wl_subcompositor_interface subcompositor_impl = {
|
||||
|
|
Loading…
Reference in a new issue