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 | layer_shell: Arrange popups even if exclusive zone doesn't change (diff) | |
download | sway-1846944f0454fec08ad91a04ab04e3b1ffcd1764.tar.gz sway-1846944f0454fec08ad91a04ab04e3b1ffcd1764.tar.zst sway-1846944f0454fec08ad91a04ab04e3b1ffcd1764.zip |
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 { | |||
177 | }; | 177 | }; |
178 | #endif | 178 | #endif |
179 | 179 | ||
180 | struct sway_popup_desc { | ||
181 | struct wlr_scene_node *relative; | ||
182 | struct sway_view *view; | ||
183 | }; | ||
184 | |||
180 | struct sway_xdg_popup { | 185 | struct sway_xdg_popup { |
181 | struct sway_view *view; | 186 | struct sway_view *view; |
182 | 187 | ||
@@ -184,6 +189,8 @@ struct sway_xdg_popup { | |||
184 | struct wlr_scene_tree *xdg_surface_tree; | 189 | struct wlr_scene_tree *xdg_surface_tree; |
185 | struct wlr_xdg_popup *wlr_xdg_popup; | 190 | struct wlr_xdg_popup *wlr_xdg_popup; |
186 | 191 | ||
192 | struct sway_popup_desc desc; | ||
193 | |||
187 | struct wl_listener surface_commit; | 194 | struct wl_listener surface_commit; |
188 | struct wl_listener new_popup; | 195 | struct wl_listener new_popup; |
189 | struct wl_listener destroy; | 196 | struct wl_listener destroy; |