diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/tree/container.h | 28 | ||||
-rw-r--r-- | include/sway/tree/view.h | 28 |
2 files changed, 28 insertions, 28 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h index c0c803f1..4366a010 100644 --- a/include/sway/tree/container.h +++ b/include/sway/tree/container.h | |||
@@ -127,6 +127,12 @@ struct sway_container { | |||
127 | size_t title_height; | 127 | size_t title_height; |
128 | size_t title_baseline; | 128 | size_t title_baseline; |
129 | 129 | ||
130 | list_t *marks; // char * | ||
131 | struct wlr_texture *marks_focused; | ||
132 | struct wlr_texture *marks_focused_inactive; | ||
133 | struct wlr_texture *marks_unfocused; | ||
134 | struct wlr_texture *marks_urgent; | ||
135 | |||
130 | struct { | 136 | struct { |
131 | struct wl_signal destroy; | 137 | struct wl_signal destroy; |
132 | } events; | 138 | } events; |
@@ -304,4 +310,26 @@ struct sway_container *container_split(struct sway_container *child, | |||
304 | bool container_is_transient_for(struct sway_container *child, | 310 | bool container_is_transient_for(struct sway_container *child, |
305 | struct sway_container *ancestor); | 311 | struct sway_container *ancestor); |
306 | 312 | ||
313 | /** | ||
314 | * Find any container that has the given mark and return it. | ||
315 | */ | ||
316 | struct sway_container *container_find_mark(char *mark); | ||
317 | |||
318 | /** | ||
319 | * Find any container that has the given mark and remove the mark from the | ||
320 | * container. Returns true if it matched a container. | ||
321 | */ | ||
322 | bool container_find_and_unmark(char *mark); | ||
323 | |||
324 | /** | ||
325 | * Remove all marks from the container. | ||
326 | */ | ||
327 | void container_clear_marks(struct sway_container *container); | ||
328 | |||
329 | bool container_has_mark(struct sway_container *container, char *mark); | ||
330 | |||
331 | void container_add_mark(struct sway_container *container, char *mark); | ||
332 | |||
333 | void container_update_marks_textures(struct sway_container *container); | ||
334 | |||
307 | #endif | 335 | #endif |
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index 67f17914..4a8c3cb1 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h | |||
@@ -100,12 +100,6 @@ struct sway_view { | |||
100 | bool destroying; | 100 | bool destroying; |
101 | 101 | ||
102 | list_t *executed_criteria; // struct criteria * | 102 | list_t *executed_criteria; // struct criteria * |
103 | list_t *marks; // char * | ||
104 | |||
105 | struct wlr_texture *marks_focused; | ||
106 | struct wlr_texture *marks_focused_inactive; | ||
107 | struct wlr_texture *marks_unfocused; | ||
108 | struct wlr_texture *marks_urgent; | ||
109 | 103 | ||
110 | union { | 104 | union { |
111 | struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6; | 105 | struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6; |
@@ -353,28 +347,6 @@ void view_update_title(struct sway_view *view, bool force); | |||
353 | void view_execute_criteria(struct sway_view *view); | 347 | void view_execute_criteria(struct sway_view *view); |
354 | 348 | ||
355 | /** | 349 | /** |
356 | * Find any view that has the given mark and return it. | ||
357 | */ | ||
358 | struct sway_view *view_find_mark(char *mark); | ||
359 | |||
360 | /** | ||
361 | * Find any view that has the given mark and remove the mark from the view. | ||
362 | * Returns true if it matched a view. | ||
363 | */ | ||
364 | bool view_find_and_unmark(char *mark); | ||
365 | |||
366 | /** | ||
367 | * Remove all marks from the view. | ||
368 | */ | ||
369 | void view_clear_marks(struct sway_view *view); | ||
370 | |||
371 | bool view_has_mark(struct sway_view *view, char *mark); | ||
372 | |||
373 | void view_add_mark(struct sway_view *view, char *mark); | ||
374 | |||
375 | void view_update_marks_textures(struct sway_view *view); | ||
376 | |||
377 | /** | ||
378 | * Returns true if there's a possibility the view may be rendered on screen. | 350 | * Returns true if there's a possibility the view may be rendered on screen. |
379 | * Intended for damage tracking. | 351 | * Intended for damage tracking. |
380 | */ | 352 | */ |