surface: move subsurface lists to state

This commit is contained in:
Kirill Primak 2021-08-26 20:57:51 +03:00 committed by Simon Ser
parent 3ac99fa4dc
commit 90e62390d9
2 changed files with 30 additions and 36 deletions

View file

@ -47,6 +47,9 @@ struct wlr_surface_state {
int width, height; // in surface-local coordinates
int buffer_width, buffer_height;
struct wl_list subsurfaces_below;
struct wl_list subsurfaces_above;
/**
* The viewport is applied after the surface transform and scale.
*
@ -139,14 +142,6 @@ struct wlr_surface {
struct wl_signal destroy;
} events;
// wlr_subsurface.parent_link
struct wl_list subsurfaces_below;
struct wl_list subsurfaces_above;
// wlr_subsurface.parent_pending_link
struct wl_list subsurfaces_pending_below;
struct wl_list subsurfaces_pending_above;
struct wl_list current_outputs; // wlr_surface_output::link
void *data;