From 96aec06b0a361db7604488bd5d246c20d68a91b1 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 7 Dec 2023 12:27:40 +0100 Subject: subcompositor: use wlr_surface_synced --- include/wlr/types/wlr_subcompositor.h | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/wlr/types/wlr_subcompositor.h b/include/wlr/types/wlr_subcompositor.h index d20fef94..63323da6 100644 --- a/include/wlr/types/wlr_subcompositor.h +++ b/include/wlr/types/wlr_subcompositor.h @@ -12,8 +12,7 @@ #include #include #include - -struct wlr_surface; +#include /** * The sub-surface state describing the sub-surface's relationship with its @@ -23,6 +22,10 @@ struct wlr_surface; struct wlr_subsurface_parent_state { int32_t x, y; struct wl_list link; + + // private state + + struct wlr_surface_synced *synced; }; struct wlr_subsurface { @@ -47,6 +50,14 @@ struct wlr_subsurface { } events; void *data; + + // private state + + struct wlr_surface_synced parent_synced; + + struct { + int32_t x, y; + } previous; }; struct wlr_subcompositor { -- cgit v1.2.3