xdg-popup: use configure fields

This commit is contained in:
Kirill Primak 2022-06-21 07:42:58 +03:00 committed by Simon Ser
parent 8d2fa15e9d
commit 5c4384a133
2 changed files with 14 additions and 6 deletions

View file

@ -83,11 +83,14 @@ struct wlr_xdg_popup_state {
bool reactive;
};
enum wlr_xdg_popup_configure_field {
WLR_XDG_POPUP_CONFIGURE_REPOSITION_TOKEN = 1 << 0,
};
struct wlr_xdg_popup_configure {
uint32_t fields; // enum wlr_xdg_popup_configure_field
struct wlr_box geometry;
struct wlr_xdg_positioner_rules rules;
bool has_reposition_token;
uint32_t reposition_token;
};