xdg-shell: use wlr_surface_synced for popups

This commit is contained in:
Simon Ser 2023-12-08 12:16:12 +01:00
parent 9201431c29
commit 4b3553409a
4 changed files with 32 additions and 7 deletions

View file

@ -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);

View file

@ -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