summaryrefslogtreecommitdiffstats
path: root/include/sway/tree
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/container.h2
-rw-r--r--include/sway/tree/view.h5
-rw-r--r--include/sway/tree/workspace.h4
3 files changed, 9 insertions, 2 deletions
diff --git a/include/sway/tree/container.h b/include/sway/tree/container.h
index 44ff9f7d..16a180f8 100644
--- a/include/sway/tree/container.h
+++ b/include/sway/tree/container.h
@@ -113,7 +113,7 @@ struct sway_container {
113 113
114 enum sway_container_type type; 114 enum sway_container_type type;
115 enum sway_container_layout layout; 115 enum sway_container_layout layout;
116 enum sway_container_layout prev_layout; 116 enum sway_container_layout prev_split_layout;
117 117
118 bool is_sticky; 118 bool is_sticky;
119 119
diff --git a/include/sway/tree/view.h b/include/sway/tree/view.h
index e91d2a20..c2225bcb 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -320,6 +320,11 @@ void view_update_title(struct sway_view *view, bool force);
320void view_execute_criteria(struct sway_view *view); 320void view_execute_criteria(struct sway_view *view);
321 321
322/** 322/**
323 * Find any view that has the given mark and return it.
324 */
325struct sway_view *view_find_mark(char *mark);
326
327/**
323 * Find any view that has the given mark and remove the mark from the view. 328 * Find any view that has the given mark and remove the mark from the view.
324 * Returns true if it matched a view. 329 * Returns true if it matched a view.
325 */ 330 */
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index 3337f2c8..239cbbdb 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -1,6 +1,7 @@
1#ifndef _SWAY_WORKSPACE_H 1#ifndef _SWAY_WORKSPACE_H
2#define _SWAY_WORKSPACE_H 2#define _SWAY_WORKSPACE_H
3 3
4#include <stdbool.h>
4#include "sway/tree/container.h" 5#include "sway/tree/container.h"
5 6
6struct sway_view; 7struct sway_view;
@@ -17,7 +18,8 @@ extern char *prev_workspace_name;
17 18
18char *workspace_next_name(const char *output_name); 19char *workspace_next_name(const char *output_name);
19 20
20bool workspace_switch(struct sway_container *workspace); 21bool workspace_switch(struct sway_container *workspace,
22 bool no_auto_back_and_forth);
21 23
22struct sway_container *workspace_by_number(const char* name); 24struct sway_container *workspace_by_number(const char* name);
23 25