Fix assigning workspaces to outputs

It's possible to assign workspaces to certain outputs using the command:

    workspace <name> output <output>

However, this did not work in some cases where the workspace was
assigned before the given output was made available to sway.

This patch fixes those cases.
This commit is contained in:
Mikkel Oscar Lyderik 2016-03-04 16:44:49 +01:00
parent 79bfd620d6
commit 8ddafeeaae
4 changed files with 27 additions and 5 deletions

View file

@ -7,7 +7,7 @@
extern char *prev_workspace_name;
char *workspace_next_name(void);
char *workspace_next_name(const char *output_name);
swayc_t *workspace_create(const char*);
swayc_t *workspace_by_name(const char*);
swayc_t *workspace_by_number(const char*);