sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit ae80bdedf998f38944bc5295d36daefc3f3d7668
parent 72b0491ca04de6e373ee14142e47de241b605bf8
Author: Kirill Primak <vyivel@posteo.net>
Date:   Mon,  6 Sep 2021 18:23:42 +0300

surface: chase wlr subsurface list/link change

Diffstat:
Msway/tree/view.c | 12++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/sway/tree/view.c b/sway/tree/view.c @@ -1038,10 +1038,12 @@ static void view_child_handle_surface_destroy(struct wl_listener *listener, static void view_init_subsurfaces(struct sway_view *view, struct wlr_surface *surface) { struct wlr_subsurface *subsurface; - wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) { + wl_list_for_each(subsurface, &surface->current.subsurfaces_below, + current.link) { view_subsurface_create(view, subsurface); } - wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) { + wl_list_for_each(subsurface, &surface->current.subsurfaces_above, + current.link) { view_subsurface_create(view, subsurface); } } @@ -1049,10 +1051,12 @@ static void view_init_subsurfaces(struct sway_view *view, static void view_child_init_subsurfaces(struct sway_view_child *view_child, struct wlr_surface *surface) { struct wlr_subsurface *subsurface; - wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) { + wl_list_for_each(subsurface, &surface->current.subsurfaces_below, + current.link) { view_child_subsurface_create(view_child, subsurface); } - wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) { + wl_list_for_each(subsurface, &surface->current.subsurfaces_above, + current.link) { view_child_subsurface_create(view_child, subsurface); } }