From 42ae1e75aa22c9f8063300dcca846b35c03022e5 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Mon, 12 Sep 2022 19:03:35 +0300 Subject: [PATCH] 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. --- types/wlr_subcompositor.c | 3 +-- 1 file changed, 1 insertion(+), 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; }