summaryrefslogtreecommitdiffstats
path: root/include/sway
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-08-06 11:30:14 -0400
committerLibravatar GitHub <noreply@github.com>2018-08-06 11:30:14 -0400
commit1a8bee68b40f641f57adc97d0f2ffcf5e2ed544d (patch)
tree3df803a95c0a13f4dc9b627db505ba50d5e6a6d2 /include/sway
parentMerge pull request #2422 from ggreer/compiler-errors (diff)
parentcommands: fix workspace edge cases (diff)
downloadsway-1a8bee68b40f641f57adc97d0f2ffcf5e2ed544d.tar.gz
sway-1a8bee68b40f641f57adc97d0f2ffcf5e2ed544d.tar.zst
sway-1a8bee68b40f641f57adc97d0f2ffcf5e2ed544d.zip
Merge pull request #2392 from ianyfan/commands
Fix commands: criteria, layout, move, workspace
Diffstat (limited to 'include/sway')
-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 37fd02bc..4a3f01e7 100644
--- a/include/sway/tree/view.h
+++ b/include/sway/tree/view.h
@@ -316,6 +316,11 @@ void view_update_title(struct sway_view *view, bool force);
316void view_execute_criteria(struct sway_view *view); 316void view_execute_criteria(struct sway_view *view);
317 317
318/** 318/**
319 * Find any view that has the given mark and return it.
320 */
321struct sway_view *view_find_mark(char *mark);
322
323/**
319 * Find any view that has the given mark and remove the mark from the view. 324 * Find any view that has the given mark and remove the mark from the view.
320 * Returns true if it matched a view. 325 * Returns true if it matched a view.
321 */ 326 */
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