xdg: fix subsurface damage bug

Create struct view_child for each wlr_surface subsurface on first view
map. Firefox doesn't damage properly without this.
This commit is contained in:
Johan Malm 2021-04-15 20:37:57 +01:00
parent 2f5a44d34d
commit 985ffd3691

View file

@ -264,6 +264,12 @@ xdg_toplevel_view_map(struct view *view)
}
update_padding(view);
position_xdg_toplevel_view(view);
struct wlr_subsurface *subsurface;
wl_list_for_each(subsurface, &view->surface->subsurfaces,
parent_link) {
subsurface_create(view, subsurface);
}
}
view->been_mapped = true;