diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2023-07-19 01:46:13 +0300 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2023-11-23 13:18:06 +0000 |
commit | 504b9491f05d3227d45ea6bcc9c347e1a6bf9586 (patch) | |
tree | 54227716273a48da043e75e196219f2fa1c45f6d | |
parent | 43fd3a007eb15d033f386de6f589b4560dde9e79 (diff) |
subcompositor: emit new_subsurface immediately
See https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3608.
-rw-r--r-- | types/wlr_subcompositor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/types/wlr_subcompositor.c b/types/wlr_subcompositor.c index c66d6f1d..f20d8042 100644 --- a/types/wlr_subcompositor.c +++ b/types/wlr_subcompositor.c @@ -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 = { |