From 9201431c291ccd26d0958e1a8ab9cb9c84763677 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 4 Dec 2023 22:43:27 +0100 Subject: xdg-shell: use wlr_surface_synced for toplevel --- include/types/wlr_xdg_shell.h | 1 + include/wlr/types/wlr_xdg_shell.h | 4 ++++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/types/wlr_xdg_shell.h b/include/types/wlr_xdg_shell.h index 34dec2ad..1ae142fd 100644 --- a/include/types/wlr_xdg_shell.h +++ b/include/types/wlr_xdg_shell.h @@ -30,6 +30,7 @@ void create_xdg_toplevel(struct wlr_xdg_surface *surface, uint32_t id); void reset_xdg_toplevel(struct wlr_xdg_toplevel *toplevel); void destroy_xdg_toplevel(struct wlr_xdg_toplevel *toplevel); +void handle_xdg_toplevel_client_commit(struct wlr_xdg_toplevel *toplevel); void handle_xdg_toplevel_committed(struct wlr_xdg_toplevel *toplevel); struct wlr_xdg_toplevel_configure *send_xdg_toplevel_configure( struct wlr_xdg_toplevel *toplevel); diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h index fbc771a7..168d76d9 100644 --- a/include/wlr/types/wlr_xdg_shell.h +++ b/include/wlr/types/wlr_xdg_shell.h @@ -208,6 +208,10 @@ struct wlr_xdg_toplevel { struct wl_signal set_title; struct wl_signal set_app_id; } events; + + // private state + + struct wlr_surface_synced synced; }; struct wlr_xdg_surface_configure { -- cgit v1.2.3