diff options
Diffstat (limited to 'include/sway/tree/view.h')
-rw-r--r-- | include/sway/tree/view.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 3e5a9bfe..7faacdcc 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -84,6 +84,8 @@ struct sway_view { | |||
84 | // transaction state. Updated on every commit. | 84 | // transaction state. Updated on every commit. |
85 | struct wlr_box geometry; | 85 | struct wlr_box geometry; |
86 | 86 | ||
87 | struct wlr_ext_foreign_toplevel_handle_v1 *ext_foreign_toplevel; | ||
88 | |||
87 | struct wlr_foreign_toplevel_handle_v1 *foreign_toplevel; | 89 | struct wlr_foreign_toplevel_handle_v1 *foreign_toplevel; |
88 | struct wl_listener foreign_activate_request; | 90 | struct wl_listener foreign_activate_request; |
89 | struct wl_listener foreign_fullscreen_request; | 91 | struct wl_listener foreign_fullscreen_request; |
@@ -174,6 +176,11 @@ struct sway_xwayland_unmanaged { | |||
174 | }; | 176 | }; |
175 | #endif | 177 | #endif |
176 | 178 | ||
179 | struct sway_popup_desc { | ||
180 | struct wlr_scene_node *relative; | ||
181 | struct sway_view *view; | ||
182 | }; | ||
183 | |||
177 | struct sway_xdg_popup { | 184 | struct sway_xdg_popup { |
178 | struct sway_view *view; | 185 | struct sway_view *view; |
179 | 186 | ||
@@ -181,8 +188,11 @@ struct sway_xdg_popup { | |||
181 | struct wlr_scene_tree *xdg_surface_tree; | 188 | struct wlr_scene_tree *xdg_surface_tree; |
182 | struct wlr_xdg_popup *wlr_xdg_popup; | 189 | struct wlr_xdg_popup *wlr_xdg_popup; |
183 | 190 | ||
191 | struct sway_popup_desc desc; | ||
192 | |||
184 | struct wl_listener surface_commit; | 193 | struct wl_listener surface_commit; |
185 | struct wl_listener new_popup; | 194 | struct wl_listener new_popup; |
195 | struct wl_listener reposition; | ||
186 | struct wl_listener destroy; | 196 | struct wl_listener destroy; |
187 | }; | 197 | }; |
188 | 198 | ||
@@ -233,6 +243,11 @@ void view_set_activated(struct sway_view *view, bool activated); | |||
233 | */ | 243 | */ |
234 | void view_request_activate(struct sway_view *view, struct sway_seat *seat); | 244 | void view_request_activate(struct sway_view *view, struct sway_seat *seat); |
235 | 245 | ||
246 | /* | ||
247 | * Called when the view requests urgent state | ||
248 | */ | ||
249 | void view_request_urgent(struct sway_view *view); | ||
250 | |||
236 | /** | 251 | /** |
237 | * If possible, instructs the client to change their decoration mode. | 252 | * If possible, instructs the client to change their decoration mode. |
238 | */ | 253 | */ |
@@ -284,6 +299,8 @@ struct sway_view *view_from_wlr_xwayland_surface( | |||
284 | #endif | 299 | #endif |
285 | struct sway_view *view_from_wlr_surface(struct wlr_surface *surface); | 300 | struct sway_view *view_from_wlr_surface(struct wlr_surface *surface); |
286 | 301 | ||
302 | void view_update_app_id(struct sway_view *view); | ||
303 | |||
287 | /** | 304 | /** |
288 | * Re-read the view's title property and update any relevant title bars. | 305 | * Re-read the view's title property and update any relevant title bars. |
289 | * The force argument makes it recreate the title bars even if the title hasn't | 306 | * The force argument makes it recreate the title bars even if the title hasn't |