xdg_shell: Extract struct for popup descriptor

This commit is contained in:
Alexander Orzechowski 2024-01-23 10:17:26 -05:00
parent c2598aba92
commit fe911a418f
4 changed files with 15 additions and 7 deletions

View file

@ -174,6 +174,11 @@ struct sway_xwayland_unmanaged {
};
#endif
struct sway_popup_desc {
struct wlr_scene_node *relative;
struct sway_view *view;
};
struct sway_xdg_popup {
struct sway_view *view;
@ -181,6 +186,8 @@ struct sway_xdg_popup {
struct wlr_scene_tree *xdg_surface_tree;
struct wlr_xdg_popup *wlr_xdg_popup;
struct sway_popup_desc desc;
struct wl_listener surface_commit;
struct wl_listener new_popup;
struct wl_listener destroy;