aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Simon Ser <contact@emersion.fr>2021-06-01 12:24:12 +0200
committerLibravatar Simon Ser <contact@emersion.fr>2021-06-03 14:06:29 +0200
commit3162766eef14be71789478b0984bc2c1802832b2 (patch)
treea1f1c5b0d6520c03d9517a063046156c8015b4ad /sway/tree/view.c
parentImplement xdg-activation-v1 (diff)
downloadsway-3162766eef14be71789478b0984bc2c1802832b2.tar.gz
sway-3162766eef14be71789478b0984bc2c1802832b2.tar.zst
sway-3162766eef14be71789478b0984bc2c1802832b2.zip
Iterate over subsurfaces below the parent surface
Update for the breaking change in [1]. [1]: https://github.com/swaywm/wlroots/pull/2948
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 039d8bb1..33d16e29 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -1037,7 +1037,10 @@ static void view_child_handle_surface_destroy(struct wl_listener *listener,
1037static void view_init_subsurfaces(struct sway_view *view, 1037static void view_init_subsurfaces(struct sway_view *view,
1038 struct wlr_surface *surface) { 1038 struct wlr_surface *surface) {
1039 struct wlr_subsurface *subsurface; 1039 struct wlr_subsurface *subsurface;
1040 wl_list_for_each(subsurface, &surface->subsurfaces, parent_link) { 1040 wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) {
1041 view_subsurface_create(view, subsurface);
1042 }
1043 wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) {
1041 view_subsurface_create(view, subsurface); 1044 view_subsurface_create(view, subsurface);
1042 } 1045 }
1043} 1046}
@@ -1045,7 +1048,10 @@ static void view_init_subsurfaces(struct sway_view *view,
1045static void view_child_init_subsurfaces(struct sway_view_child *view_child, 1048static void view_child_init_subsurfaces(struct sway_view_child *view_child,
1046 struct wlr_surface *surface) { 1049 struct wlr_surface *surface) {
1047 struct wlr_subsurface *subsurface; 1050 struct wlr_subsurface *subsurface;
1048 wl_list_for_each(subsurface, &surface->subsurfaces, parent_link) { 1051 wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) {
1052 view_child_subsurface_create(view_child, subsurface);
1053 }
1054 wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) {
1049 view_child_subsurface_create(view_child, subsurface); 1055 view_child_subsurface_create(view_child, subsurface);
1050 } 1056 }
1051} 1057}