subsurface: move parent link to state

Move the wlr_subsurface parent link to the subsurface state.

This is a dumb find/replace operation. This shouldn't result in
any behavior change.
This commit is contained in:
Simon Ser 2021-08-18 16:11:09 +02:00
parent 56b6b80b9a
commit 3ac99fa4dc
2 changed files with 47 additions and 37 deletions

View file

@ -170,6 +170,7 @@ struct wlr_surface {
*/
struct wlr_subsurface_parent_state {
int32_t x, y;
struct wl_list link;
};
struct wlr_subsurface {
@ -186,9 +187,6 @@ struct wlr_subsurface {
bool reordered;
bool mapped;
struct wl_list parent_link;
struct wl_list parent_pending_link;
struct wl_listener surface_destroy;
struct wl_listener parent_destroy;