From 6f1fce9cb450e22b6312369392d8835667825171 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Wed, 13 Apr 2022 20:22:14 +0300 Subject: xdg-popup: use current/pending state pattern --- include/wlr/types/wlr_xdg_shell.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'include/wlr') 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 }; -- cgit v1.2.3