mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
xdg-popup: use current/pending state pattern
This commit is contained in:
parent
4a968576e4
commit
6f1fce9cb4
5 changed files with 31 additions and 26 deletions
|
|
@ -70,6 +70,12 @@ struct wlr_xdg_positioner {
|
|||
struct wlr_xdg_positioner_rules rules;
|
||||
};
|
||||
|
||||
struct wlr_xdg_popup_state {
|
||||
// Position of the popup relative to the upper left corner of
|
||||
// the window geometry of the parent surface
|
||||
struct wlr_box geometry;
|
||||
};
|
||||
|
||||
struct wlr_xdg_popup_configure {
|
||||
struct wlr_box geometry;
|
||||
struct wlr_xdg_positioner_rules rules;
|
||||
|
|
@ -86,9 +92,7 @@ struct wlr_xdg_popup {
|
|||
|
||||
struct wlr_xdg_popup_configure scheduled;
|
||||
|
||||
// Position of the popup relative to the upper left corner of the window
|
||||
// geometry of the parent surface
|
||||
struct wlr_box geometry;
|
||||
struct wlr_xdg_popup_state current, pending;
|
||||
|
||||
struct wl_list grab_link; // wlr_xdg_popup_grab.popups
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue