diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-09-12 19:03:35 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-09-12 18:44:36 +0000 |
commit | 42ae1e75aa22c9f8063300dcca846b35c03022e5 (patch) | |
tree | 445707ea7ee5246d675bf5bf47ee9cfc95b96a00 | |
parent | 3abedaf21175eb0df89452727a14e30b01b3a8bf (diff) |
subcompositor: consider mapping after adding
ec8b49c93f869010e360bec501d61c18089fbc61 calls subsurface_consider_map()
too early. Instead, call it after emitting new_subsurface signal to let
compositors receive a map event.
-rw-r--r-- | types/wlr_subcompositor.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/types/wlr_subcompositor.c b/types/wlr_subcompositor.c index 6ec8a397..69c66a65 100644 --- a/types/wlr_subcompositor.c +++ b/types/wlr_subcompositor.c @@ -367,6 +367,7 @@ void subsurface_handle_parent_commit(struct wlr_subsurface *subsurface) { subsurface->added = true; wl_signal_emit_mutable(&subsurface->parent->events.new_subsurface, subsurface); + subsurface_consider_map(subsurface, true); } } @@ -414,8 +415,6 @@ static struct wlr_subsurface *subsurface_create(struct wlr_surface *surface, surface->role_data = subsurface; - subsurface_consider_map(subsurface, true); - return subsurface; } |