diff options
author | Alexander Orzechowski <alex@ozal.ski> | 2024-01-23 10:17:26 -0500 |
---|---|---|
committer | Kirill Primak <vyivel@eclair.cafe> | 2024-02-12 19:19:22 +0300 |
commit | 1846944f0454fec08ad91a04ab04e3b1ffcd1764 (patch) | |
tree | 76b6cea3f679e8eff228001654fa43a6a9aa8f47 /include | |
parent | 1dc661af176d80db8b283e9c38fd127f71d33052 (diff) |
xdg_shell: Extract struct for popup descriptor
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/view.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 5f6c2ead..8f3626fd 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h @@ -177,6 +177,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; @@ -184,6 +189,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; |