mirror of
https://github.com/swaywm/sway.git
synced 2026-03-10 05:34:03 -04:00
Merge e58e542c43 into b081eba05d
This commit is contained in:
commit
c168f77127
9 changed files with 261 additions and 51 deletions
|
|
@ -84,8 +84,9 @@ struct criteria *criteria_parse(char *raw, char **error);
|
|||
list_t *criteria_for_view(struct sway_view *view, enum criteria_type types);
|
||||
|
||||
/**
|
||||
* Compile a list of containers matching the given criteria.
|
||||
* Compile a list of nodes matching the given criteria.
|
||||
* Returns a list of struct sway_node *.
|
||||
*/
|
||||
list_t *criteria_get_containers(struct criteria *criteria);
|
||||
list_t *criteria_get_nodes(struct criteria *criteria);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -48,6 +48,7 @@ struct sway_workspace {
|
|||
list_t *floating; // struct sway_container
|
||||
list_t *tiling; // struct sway_container
|
||||
list_t *output_priority;
|
||||
list_t *marks; // char *
|
||||
bool urgent;
|
||||
|
||||
struct sway_workspace_state current;
|
||||
|
|
@ -157,4 +158,14 @@ size_t workspace_num_sticky_containers(struct sway_workspace *ws);
|
|||
*/
|
||||
void workspace_squash(struct sway_workspace *workspace);
|
||||
|
||||
bool workspace_has_mark(struct sway_workspace *ws, char *mark);
|
||||
|
||||
void workspace_add_mark(struct sway_workspace *ws, char *mark);
|
||||
|
||||
void workspace_clear_marks(struct sway_workspace *ws);
|
||||
|
||||
bool workspace_find_and_unmark(char *mark);
|
||||
|
||||
struct sway_workspace *workspace_find_mark(char *mark);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue