aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-09-06 18:23:42 +0300
committerFurkan Sahin <furkan-dev@proton.me>2021-09-06 18:23:42 +0300
commit854859c65d231e3109ba719dd9368cdb3574074d (patch)
tree565fef6ce7137e2fb0fc005aa18e4538bdf5ce5a
parent14b9d10eaa0d60adfb61db590809b767c8b0294f (diff)
surface: chase wlr subsurface list/link change
-rw-r--r--sway/tree/view.c12
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,
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);
}
}