From 90e62390d94dcdf2810e2fd60df505449e4d5917 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Thu, 26 Aug 2021 20:57:51 +0300 Subject: surface: move subsurface lists to state --- include/wlr/types/wlr_surface.h | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'include') diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index 6d8b1551..4b464401 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -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; -- cgit v1.2.3