Add workspace to outputs

This commit is contained in:
Drew DeVault 2017-11-22 20:39:27 -05:00
parent 68036018c8
commit aeda2e077f
7 changed files with 104 additions and 5 deletions

View file

@ -126,5 +126,6 @@ struct sway_container {
};
swayc_t *new_output(struct sway_output *sway_output);
swayc_t *new_workspace(swayc_t *output, const char *name);
#endif

View file

@ -5,5 +5,7 @@ struct sway_container;
void init_layout(void);
void add_child(struct sway_container *parent, struct sway_container *child);
enum swayc_layouts default_layout(struct sway_container *output);
void sort_workspaces(struct sway_container *output);
#endif

6
include/sway/workspace.h Normal file
View file

@ -0,0 +1,6 @@
#ifndef _SWAY_WORKSPACE_H
#define _SWAY_WORKSPACE_H
char *workspace_next_name(const char *output_name);
#endif