xdg-popup: add reposition support

This commit is contained in:
Kirill Primak 2022-04-13 20:40:23 +03:00 committed by Simon Ser
parent 8a0835c59c
commit 1761c3bbe2
2 changed files with 39 additions and 1 deletions

View file

@ -86,6 +86,9 @@ struct wlr_xdg_popup_state {
struct wlr_xdg_popup_configure {
struct wlr_box geometry;
struct wlr_xdg_positioner_rules rules;
bool has_reposition_token;
uint32_t reposition_token;
};
struct wlr_xdg_popup {
@ -101,6 +104,10 @@ struct wlr_xdg_popup {
struct wlr_xdg_popup_state current, pending;
struct {
struct wl_signal reposition;
} events;
struct wl_list grab_link; // wlr_xdg_popup_grab.popups
};