diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2024-01-23 10:17:26 -0500 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2024-01-23 10:17:26 -0500 |
| commit | f7b27575a28f7e83322c2c1421caa08de8b57418 (patch) | |
| tree | 76b6cea3f679e8eff228001654fa43a6a9aa8f47 /include | |
| parent | deb8fd9ad5023624a36ca5f9019835bf18cc8b90 (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; |
