diff options
author | Kirill Primak <vyivel@posteo.net> | 2021-09-06 18:23:42 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-09-06 17:39:28 +0200 |
commit | ae80bdedf998f38944bc5295d36daefc3f3d7668 (patch) | |
tree | 565fef6ce7137e2fb0fc005aa18e4538bdf5ce5a /sway | |
parent | view: fix saved buffer order (diff) | |
download | sway-ae80bdedf998f38944bc5295d36daefc3f3d7668.tar.gz sway-ae80bdedf998f38944bc5295d36daefc3f3d7668.tar.zst sway-ae80bdedf998f38944bc5295d36daefc3f3d7668.zip |
surface: chase wlr subsurface list/link change
Diffstat (limited to 'sway')
-rw-r--r-- | sway/tree/view.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 200b7c2a..1ee00f8d 100644 --- 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, | |||
1038 | static void view_init_subsurfaces(struct sway_view *view, | 1038 | static void view_init_subsurfaces(struct sway_view *view, |
1039 | struct wlr_surface *surface) { | 1039 | struct wlr_surface *surface) { |
1040 | struct wlr_subsurface *subsurface; | 1040 | struct wlr_subsurface *subsurface; |
1041 | wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) { | 1041 | wl_list_for_each(subsurface, &surface->current.subsurfaces_below, |
1042 | current.link) { | ||
1042 | view_subsurface_create(view, subsurface); | 1043 | view_subsurface_create(view, subsurface); |
1043 | } | 1044 | } |
1044 | wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) { | 1045 | wl_list_for_each(subsurface, &surface->current.subsurfaces_above, |
1046 | current.link) { | ||
1045 | view_subsurface_create(view, subsurface); | 1047 | view_subsurface_create(view, subsurface); |
1046 | } | 1048 | } |
1047 | } | 1049 | } |
@@ -1049,10 +1051,12 @@ static void view_init_subsurfaces(struct sway_view *view, | |||
1049 | static void view_child_init_subsurfaces(struct sway_view_child *view_child, | 1051 | static void view_child_init_subsurfaces(struct sway_view_child *view_child, |
1050 | struct wlr_surface *surface) { | 1052 | struct wlr_surface *surface) { |
1051 | struct wlr_subsurface *subsurface; | 1053 | struct wlr_subsurface *subsurface; |
1052 | wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) { | 1054 | wl_list_for_each(subsurface, &surface->current.subsurfaces_below, |
1055 | current.link) { | ||
1053 | view_child_subsurface_create(view_child, subsurface); | 1056 | view_child_subsurface_create(view_child, subsurface); |
1054 | } | 1057 | } |
1055 | wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) { | 1058 | wl_list_for_each(subsurface, &surface->current.subsurfaces_above, |
1059 | current.link) { | ||
1056 | view_child_subsurface_create(view_child, subsurface); | 1060 | view_child_subsurface_create(view_child, subsurface); |
1057 | } | 1061 | } |
1058 | } | 1062 | } |