aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-04-13 20:22:14 +0300
committerSimon Ser <contact@emersion.fr>2022-05-27 13:31:30 +0000
commit6f1fce9cb450e22b6312369392d8835667825171 (patch)
tree1f312c40fc5cb87ca8f8f86fddf201ee791b6ba5 /include
parent4a968576e44240b447330c848d6cd624d2a27c62 (diff)
xdg-popup: use current/pending state pattern
Diffstat (limited to 'include')
-rw-r--r--include/wlr/types/wlr_xdg_shell.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/wlr/types/wlr_xdg_shell.h b/include/wlr/types/wlr_xdg_shell.h
index 19378c16..bfb475fb 100644
--- a/include/wlr/types/wlr_xdg_shell.h
+++ b/include/wlr/types/wlr_xdg_shell.h
@@ -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
};