aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/workspace.h
diff options
context:
space:
mode:
authorLibravatar Ian Fan <ianfan0@gmail.com>2018-08-05 00:05:48 +0100
committerLibravatar Ian Fan <ianfan0@gmail.com>2018-08-06 14:17:58 +0100
commit85ae121caad02265b95ecea66fa864607575eb31 (patch)
treeb4d8dab619005e0b2f34068fd908b9153164a74f /include/sway/tree/workspace.h
parentcommands: fix layout implementation (also better name for previous split layout) (diff)
downloadsway-85ae121caad02265b95ecea66fa864607575eb31.tar.gz
sway-85ae121caad02265b95ecea66fa864607575eb31.tar.zst
sway-85ae121caad02265b95ecea66fa864607575eb31.zip
commands: complete workspace implementation
Allow optional --no-auto-back-and-forth flag, as well as refactoring some logic
Diffstat (limited to 'include/sway/tree/workspace.h')
-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 @@
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