diff options
author | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-14 22:47:10 +1000 |
---|---|---|
committer | Ryan Dwyer <ryandwyer1@gmail.com> | 2018-05-15 11:18:27 +1000 |
commit | 22d38600d0edbb35029b3076c14e0e119dbf3dd2 (patch) | |
tree | ad548731ca215e2ec0f56cde86a6ff16df8cb323 /include | |
parent | Merge pull request #1978 from RedSoxFan/fix-1975 (diff) | |
download | sway-22d38600d0edbb35029b3076c14e0e119dbf3dd2.tar.gz sway-22d38600d0edbb35029b3076c14e0e119dbf3dd2.tar.zst sway-22d38600d0edbb35029b3076c14e0e119dbf3dd2.zip |
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 { | |||
60 | bool border_left; | 60 | bool border_left; |
61 | bool border_right; | 61 | bool border_right; |
62 | 62 | ||
63 | list_t *executed_criteria; | 63 | list_t *executed_criteria; // struct criteria * |
64 | list_t *marks; // char * | ||
64 | 65 | ||
65 | union { | 66 | union { |
66 | struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6; | 67 | struct wlr_xdg_surface_v6 *wlr_xdg_surface_v6; |
@@ -253,4 +254,17 @@ void view_update_title(struct sway_view *view, bool force); | |||
253 | */ | 254 | */ |
254 | void view_execute_criteria(struct sway_view *view); | 255 | void view_execute_criteria(struct sway_view *view); |
255 | 256 | ||
257 | /** | ||
258 | * Find any view that has the given mark and remove the mark from the view. | ||
259 | * Returns true if it matched a view. | ||
260 | */ | ||
261 | bool view_find_and_unmark(char *mark); | ||
262 | |||
263 | /** | ||
264 | * Remove all marks from the view. | ||
265 | */ | ||
266 | void view_clear_marks(struct sway_view *view); | ||
267 | |||
268 | bool view_has_mark(struct sway_view *view, char *mark); | ||
269 | |||
256 | #endif | 270 | #endif |