mirror of
https://github.com/swaywm/sway.git
synced 2025-11-03 09:01:43 -05:00
Iterate over subsurfaces below the parent surface
Update for the breaking change in [1].
[1]: https://github.com/swaywm/wlroots/pull/2948
(cherry picked from commit 3162766eef)
This commit is contained in:
parent
1766ae3f44
commit
0d1231a6d1
1 changed files with 8 additions and 2 deletions
|
|
@ -1031,7 +1031,10 @@ static void view_child_handle_surface_destroy(struct wl_listener *listener,
|
||||||
static void view_init_subsurfaces(struct sway_view *view,
|
static void view_init_subsurfaces(struct sway_view *view,
|
||||||
struct wlr_surface *surface) {
|
struct wlr_surface *surface) {
|
||||||
struct wlr_subsurface *subsurface;
|
struct wlr_subsurface *subsurface;
|
||||||
wl_list_for_each(subsurface, &surface->subsurfaces, parent_link) {
|
wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) {
|
||||||
|
view_subsurface_create(view, subsurface);
|
||||||
|
}
|
||||||
|
wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) {
|
||||||
view_subsurface_create(view, subsurface);
|
view_subsurface_create(view, subsurface);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1039,7 +1042,10 @@ static void view_init_subsurfaces(struct sway_view *view,
|
||||||
static void view_child_init_subsurfaces(struct sway_view_child *view_child,
|
static void view_child_init_subsurfaces(struct sway_view_child *view_child,
|
||||||
struct wlr_surface *surface) {
|
struct wlr_surface *surface) {
|
||||||
struct wlr_subsurface *subsurface;
|
struct wlr_subsurface *subsurface;
|
||||||
wl_list_for_each(subsurface, &surface->subsurfaces, parent_link) {
|
wl_list_for_each(subsurface, &surface->subsurfaces_below, parent_link) {
|
||||||
|
view_child_subsurface_create(view_child, subsurface);
|
||||||
|
}
|
||||||
|
wl_list_for_each(subsurface, &surface->subsurfaces_above, parent_link) {
|
||||||
view_child_subsurface_create(view_child, subsurface);
|
view_child_subsurface_create(view_child, subsurface);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue