diff options
author | Ian Fan <ianfan0@gmail.com> | 2018-08-05 00:05:48 +0100 |
---|---|---|
committer | Ian Fan <ianfan0@gmail.com> | 2018-08-06 14:17:58 +0100 |
commit | 85ae121caad02265b95ecea66fa864607575eb31 (patch) | |
tree | b4d8dab619005e0b2f34068fd908b9153164a74f /include/sway/tree | |
parent | commands: fix layout implementation (also better name for previous split layout) (diff) | |
download | sway-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')
-rw-r--r-- | include/sway/tree/workspace.h | 4 |
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 | ||
6 | struct sway_view; | 7 | struct sway_view; |
@@ -17,7 +18,8 @@ extern char *prev_workspace_name; | |||
17 | 18 | ||
18 | char *workspace_next_name(const char *output_name); | 19 | char *workspace_next_name(const char *output_name); |
19 | 20 | ||
20 | bool workspace_switch(struct sway_container *workspace); | 21 | bool workspace_switch(struct sway_container *workspace, |
22 | bool no_auto_back_and_forth); | ||
21 | 23 | ||
22 | struct sway_container *workspace_by_number(const char* name); | 24 | struct sway_container *workspace_by_number(const char* name); |
23 | 25 | ||