diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-11-11 11:30:27 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-11 11:30:27 -0500 |
commit | 101515eb0c0039e8f67b7d3c8269a8898d8760ac (patch) | |
tree | 458a3acb6db39a78d26b4ce38ea637aa21812e29 /sway/tree/output.c | |
parent | 80a1c340a9c8c8aac5fe4dd7bc1dc15b43fce0dc (diff) | |
parent | 12876932a948d7265745efaccafea509bdbaffe8 (diff) |
Merge pull request #3108 from RedSoxFan/workspace-output-improved
Allow multiple outputs for workspace output
Diffstat (limited to 'sway/tree/output.c')
-rw-r--r-- | sway/tree/output.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sway/tree/output.c b/sway/tree/output.c index 2704920d..3c4614a8 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c @@ -31,6 +31,13 @@ static void restore_workspaces(struct sway_output *output) { j--; } } + + if (other->workspaces->length == 0) { + char *next = workspace_next_name(other->wlr_output->name); + struct sway_workspace *ws = workspace_create(other, next); + free(next); + ipc_event_workspace(NULL, ws, "init"); + } } // Saved workspaces |