aboutsummaryrefslogtreecommitdiff
path: root/sway/container.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-04 16:44:49 +0100
committerMikkel Oscar Lyderik <mikkeloscar@gmail.com>2016-03-04 16:44:49 +0100
commit8ddafeeaae44db77bfdb55d1776513d88a58f68e (patch)
tree4f4400de4a29dfa18ae10da6e71ea60146190155 /sway/container.c
parent79bfd620d6f7a3d089898ec6391411c2c6b22668 (diff)
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.
Diffstat (limited to 'sway/container.c')
-rw-r--r--sway/container.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/container.c b/sway/container.c
index 2db7b218..e4c20bc9 100644
--- a/sway/container.c
+++ b/sway/container.c
@@ -143,7 +143,7 @@ swayc_t *new_output(wlc_handle handle) {
}
}
if (!ws_name) {
- ws_name = workspace_next_name();
+ ws_name = workspace_next_name(output->name);
}
// create and initilize default workspace