diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-14 21:44:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-14 21:44:05 -0400 |
commit | 95f6d0deba26436445b45d4d056c1f6dd2ee82da (patch) | |
tree | df558830f4c0f5bc9e8943cfbf60532f2293aeda /include | |
parent | f1f54bbc882775d431d14f99355d339ef9dab5a8 (diff) | |
parent | 4d1edfcba90854bd7f37ecb1b36fe4f05c37dda3 (diff) |
Merge pull request #1954 from RyanDwyer/marks
Implement marks
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/config.h | 1 | ||||
-rw-r--r-- | include/sway/tree/view.h | 16 |
2 files changed, 16 insertions, 1 deletions
diff --git a/include/sway/config.h b/include/sway/config.h index f77c3b50..33f52156 100644 --- a/include/sway/config.h +++ b/include/sway/config.h @@ -368,6 +368,7 @@ struct sway_config { struct seat_config *seat_config; struct sway_seat *seat; struct sway_container *current_container; + bool using_criteria; } handler_context; }; 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 |