From 0e3d2222c2cb6566f6f5f3912b7bddb45eb7e5e5 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 7 Dec 2023 21:11:37 +0100 Subject: xdg-decoration: use wlr_surface_synced for toplevel --- include/wlr/types/wlr_xdg_decoration_v1.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_xdg_decoration_v1.h b/include/wlr/types/wlr_xdg_decoration_v1.h index d8ec038d..f1a8bc5b 100644 --- a/include/wlr/types/wlr_xdg_decoration_v1.h +++ b/include/wlr/types/wlr_xdg_decoration_v1.h @@ -36,7 +36,7 @@ struct wlr_xdg_toplevel_decoration_v1_state { struct wlr_xdg_toplevel_decoration_v1 { struct wl_resource *resource; - struct wlr_xdg_toplevel * toplevel; + struct wlr_xdg_toplevel *toplevel; struct wlr_xdg_decoration_manager_v1 *manager; struct wl_list link; // wlr_xdg_decoration_manager_v1.link @@ -52,12 +52,15 @@ struct wlr_xdg_toplevel_decoration_v1 { struct wl_signal request_mode; } events; + void *data; + + // private state + struct wl_listener toplevel_destroy; struct wl_listener surface_configure; struct wl_listener surface_ack_configure; - struct wl_listener surface_commit; - void *data; + struct wlr_surface_synced synced; }; struct wlr_xdg_decoration_manager_v1 * -- cgit v1.2.3