diff options
-rw-r--r-- | sway/tree/view.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index c762fa22..124b4621 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -1031,7 +1031,10 @@ static void view_child_handle_surface_destroy(struct wl_listener *listener, | |||
1031 | static void view_init_subsurfaces(struct sway_view *view, | 1031 | static void view_init_subsurfaces(struct sway_view *view, |
1032 | struct wlr_surface *surface) { | 1032 | struct wlr_surface *surface) { |
1033 | struct wlr_subsurface *subsurface; | 1033 | struct wlr_subsurface *subsurface; |
1034 | wl_list_for_each(subsurface, &surface->subsurfaces, parent_link) { | 1034 | wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) { |
1035 | view_subsurface_create(view, subsurface); | ||
1036 | } | ||
1037 | wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) { | ||
1035 | view_subsurface_create(view, subsurface); | 1038 | view_subsurface_create(view, subsurface); |
1036 | } | 1039 | } |
1037 | } | 1040 | } |
@@ -1039,7 +1042,10 @@ static void view_init_subsurfaces(struct sway_view *view, | |||
1039 | static void view_child_init_subsurfaces(struct sway_view_child *view_child, | 1042 | static void view_child_init_subsurfaces(struct sway_view_child *view_child, |
1040 | struct wlr_surface *surface) { | 1043 | struct wlr_surface *surface) { |
1041 | struct wlr_subsurface *subsurface; | 1044 | struct wlr_subsurface *subsurface; |
1042 | wl_list_for_each(subsurface, &surface->subsurfaces, parent_link) { | 1045 | wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) { |
1046 | view_child_subsurface_create(view_child, subsurface); | ||
1047 | } | ||
1048 | wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) { | ||
1043 | view_child_subsurface_create(view_child, subsurface); | 1049 | view_child_subsurface_create(view_child, subsurface); |
1044 | } | 1050 | } |
1045 | } | 1051 | } |