diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-05-14 22:47:10 +1000 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-05-14 22:47:10 +1000 |
| commit | c7503828a511042d182c5632459124971c50456c (patch) | |
| tree | ad548731ca215e2ec0f56cde86a6ff16df8cb323 /include | |
| parent | 104e4f00efc88d113ab6723bd5c96c2dc7be2c0d (diff) | |
Implement marks
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/tree/view.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h index f12386dc..7ed4d3df 100644 --- a/include/sway/tree/view.h +++ b/include/sway/tree/view.h @@ -60,7 +60,8 @@ struct sway_view { bool border_left; bool border_right; - list_t *executed_criteria; + list_t *executed_criteria; // struct criteria * + list_t *marks; // char * union { struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6; @@ -253,4 +254,17 @@ void view_update_title(struct sway_view *view, bool force); */ void view_execute_criteria(struct sway_view *view); +/** + * Find any view that has the given mark and remove the mark from the view. + * Returns true if it matched a view. + */ +bool view_find_and_unmark(char *mark); + +/** + * Remove all marks from the view. + */ +void view_clear_marks(struct sway_view *view); + +bool view_has_mark(struct sway_view *view, char *mark); + #endif |
