aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/tree/workspace.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/tree/workspace.h')
-rw-r--r--include/sway/tree/workspace.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/include/sway/tree/workspace.h b/include/sway/tree/workspace.h
index fdd92f64..58bde20c 100644
--- a/include/sway/tree/workspace.h
+++ b/include/sway/tree/workspace.h
@@ -2,6 +2,8 @@
2#define _SWAY_WORKSPACE_H 2#define _SWAY_WORKSPACE_H
3 3
4#include <stdbool.h> 4#include <stdbool.h>
5#include <wlr/types/wlr_scene.h>
6#include "sway/config.h"
5#include "sway/tree/container.h" 7#include "sway/tree/container.h"
6#include "sway/tree/node.h" 8#include "sway/tree/node.h"
7 9
@@ -22,6 +24,12 @@ struct sway_workspace_state {
22 24
23struct sway_workspace { 25struct sway_workspace {
24 struct sway_node node; 26 struct sway_node node;
27
28 struct {
29 struct wlr_scene_tree *tiling;
30 struct wlr_scene_tree *fullscreen;
31 } layers;
32
25 struct sway_container *fullscreen; 33 struct sway_container *fullscreen;
26 34
27 char *name; 35 char *name;
@@ -60,20 +68,20 @@ void workspace_consider_destroy(struct sway_workspace *ws);
60 68
61char *workspace_next_name(const char *output_name); 69char *workspace_next_name(const char *output_name);
62 70
63bool workspace_switch(struct sway_workspace *workspace, 71struct sway_workspace *workspace_auto_back_and_forth(
64 bool no_auto_back_and_forth); 72 struct sway_workspace *workspace);
73
74bool workspace_switch(struct sway_workspace *workspace);
65 75
66struct sway_workspace *workspace_by_number(const char* name); 76struct sway_workspace *workspace_by_number(const char* name);
67 77
68struct sway_workspace *workspace_by_name(const char*); 78struct sway_workspace *workspace_by_name(const char*);
69 79
70struct sway_workspace *workspace_output_next( 80struct sway_workspace *workspace_output_next(struct sway_workspace *current);
71 struct sway_workspace *current, bool create);
72 81
73struct sway_workspace *workspace_next(struct sway_workspace *current); 82struct sway_workspace *workspace_next(struct sway_workspace *current);
74 83
75struct sway_workspace *workspace_output_prev( 84struct sway_workspace *workspace_output_prev(struct sway_workspace *current);
76 struct sway_workspace *current, bool create);
77 85
78struct sway_workspace *workspace_prev(struct sway_workspace *current); 86struct sway_workspace *workspace_prev(struct sway_workspace *current);
79 87