From 4b3553409abc9c52d5b6b2dd61ad0fed04283356 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 8 Dec 2023 12:16:12 +0100 Subject: xdg-shell: use wlr_surface_synced for popups --- 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 1ae142fd..f3f12ec9 100644 --- a/include/types/wlr_xdg_shell.h +++ b/include/types/wlr_xdg_shell.h @@ -20,6 +20,7 @@ void create_xdg_popup(struct wlr_xdg_surface *surface, struct wlr_xdg_positioner *positioner, uint32_t id); void reset_xdg_popup(struct wlr_xdg_popup *popup); void destroy_xdg_popup(struct wlr_xdg_popup *popup); +void handle_xdg_popup_client_commit(struct wlr_xdg_popup *popup); void handle_xdg_popup_committed(struct wlr_xdg_popup *popup); struct wlr_xdg_popup_configure *send_xdg_popup_configure( struct wlr_xdg_popup *popup); diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h index 168d76d9..5c490455 100644 --- a/include/wlr/types/wlr_xdg_shell.h +++ b/include/wlr/types/wlr_xdg_shell.h @@ -110,6 +110,10 @@ struct wlr_xdg_popup { } events; struct wl_list grab_link; // wlr_xdg_popup_grab.popups + + // private state + + struct wlr_surface_synced synced; }; // each seat gets a popup grab -- cgit v1.2.3