From 0e342083440db978463dbf43795bfed8a5a11cd6 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 30 Sep 2021 20:58:36 +0200 Subject: xdg-shell: introduce wlr_xdg_surface.current This holds the current state, and avoids having ad-hoc fields in wlr_xdg_surface. --- include/wlr/types/wlr_xdg_shell.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'include') diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h index c214769a..3df2aa96 100644 --- a/include/wlr/types/wlr_xdg_shell.h +++ b/include/wlr/types/wlr_xdg_shell.h @@ -191,14 +191,11 @@ struct wlr_xdg_surface { struct wl_list popups; // wlr_xdg_popup::link bool added, configured, mapped; - uint32_t configure_serial; struct wl_event_source *configure_idle; uint32_t configure_next_serial; struct wl_list configure_list; - struct wlr_box geometry; - - struct wlr_xdg_surface_state pending; + struct wlr_xdg_surface_state current, pending; struct wl_listener surface_destroy; struct wl_listener surface_commit; -- cgit v1.2.3