aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree
diff options
context:
space:
mode:
authorIan Fan <ianfan0@gmail.com>2018-08-05 00:05:48 +0100
committerIan Fan <ianfan0@gmail.com>2018-08-06 14:17:58 +0100
commit85ae121caad02265b95ecea66fa864607575eb31 (patch)
treeb4d8dab619005e0b2f34068fd908b9153164a74f /include/sway/tree
parent356063b6c084a7c2d4e3e654fe48ec79a102294b (diff)
commands: complete workspace implementation
Allow optional --no-auto-back-and-forth flag, as well as refactoring some logic
Diffstat (limited to 'include/sway/tree')
-rw-r--r--include/sway/tree/workspace.h4
1 files changed, 3 insertions, 1 deletions
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 @@
#ifndef _SWAY_WORKSPACE_H
#define _SWAY_WORKSPACE_H
+#include <stdbool.h>
#include "sway/tree/container.h"
struct sway_view;
@@ -17,7 +18,8 @@ extern char *prev_workspace_name;
char *workspace_next_name(const char *output_name);
-bool workspace_switch(struct sway_container *workspace);
+bool workspace_switch(struct sway_container *workspace,
+ bool no_auto_back_and_forth);
struct sway_container *workspace_by_number(const char* name);