diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-22 20:39:27 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-11-22 20:39:50 -0500 |
commit | aeda2e077f6184ecd26dc078c7b5db7f0dc54fd7 (patch) | |
tree | 0e84fc6ce2409ef5c60210efd18cb0981e3f9cf7 /include | |
parent | Merge pull request #1472 from martinetd/wlroots (diff) | |
download | sway-aeda2e077f6184ecd26dc078c7b5db7f0dc54fd7.tar.gz sway-aeda2e077f6184ecd26dc078c7b5db7f0dc54fd7.tar.zst sway-aeda2e077f6184ecd26dc078c7b5db7f0dc54fd7.zip |
Add workspace to outputs
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/container.h | 1 | ||||
-rw-r--r-- | include/sway/layout.h | 2 | ||||
-rw-r--r-- | include/sway/workspace.h | 6 |
3 files changed, 9 insertions, 0 deletions
diff --git a/include/sway/container.h b/include/sway/container.h index 35d1c146..2a96165f 100644 --- a/include/sway/container.h +++ b/include/sway/container.h | |||
@@ -126,5 +126,6 @@ struct sway_container { | |||
126 | }; | 126 | }; |
127 | 127 | ||
128 | swayc_t *new_output(struct sway_output *sway_output); | 128 | swayc_t *new_output(struct sway_output *sway_output); |
129 | swayc_t *new_workspace(swayc_t *output, const char *name); | ||
129 | 130 | ||
130 | #endif | 131 | #endif |
diff --git a/include/sway/layout.h b/include/sway/layout.h index 7e7a9c35..6356ad00 100644 --- a/include/sway/layout.h +++ b/include/sway/layout.h | |||
@@ -5,5 +5,7 @@ struct sway_container; | |||
5 | 5 | ||
6 | void init_layout(void); | 6 | void init_layout(void); |
7 | void add_child(struct sway_container *parent, struct sway_container *child); | 7 | void add_child(struct sway_container *parent, struct sway_container *child); |
8 | enum swayc_layouts default_layout(struct sway_container *output); | ||
9 | void sort_workspaces(struct sway_container *output); | ||
8 | 10 | ||
9 | #endif | 11 | #endif |
diff --git a/include/sway/workspace.h b/include/sway/workspace.h new file mode 100644 index 00000000..04b2ea4e --- /dev/null +++ b/include/sway/workspace.h | |||
@@ -0,0 +1,6 @@ | |||
1 | #ifndef _SWAY_WORKSPACE_H | ||
2 | #define _SWAY_WORKSPACE_H | ||
3 | |||
4 | char *workspace_next_name(const char *output_name); | ||
5 | |||
6 | #endif | ||