mirror of
https://github.com/NickHu/sway
synced 2024-12-26 21:58:30 +01:00
surface: chase wlr subsurface list/link change
This commit is contained in:
parent
72b0491ca0
commit
ae80bdedf9
1 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue