diff options
| author | Simon Ser <contact@emersion.fr> | 2023-12-07 12:27:40 +0100 | 
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2023-12-25 11:47:15 +0100 | 
| commit | 96aec06b0a361db7604488bd5d246c20d68a91b1 (patch) | |
| tree | 5ec166d6258b6269d6279eb1a522d737a00b6274 /include | |
| parent | 1c3c24825f3114a7950a3574a96589bad59122ee (diff) | |
| download | wlroots-96aec06b0a361db7604488bd5d246c20d68a91b1.tar.xz | |
subcompositor: use wlr_surface_synced
Diffstat (limited to 'include')
| -rw-r--r-- | include/wlr/types/wlr_subcompositor.h | 15 | 
1 files changed, 13 insertions, 2 deletions
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 <stdbool.h>  #include <stdint.h>  #include <wayland-server-core.h> - -struct wlr_surface; +#include <wlr/types/wlr_compositor.h>  /**   * 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 {  | 
