diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-04 16:44:49 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-03-04 16:44:49 +0100 |
commit | 8ddafeeaae44db77bfdb55d1776513d88a58f68e (patch) | |
tree | 4f4400de4a29dfa18ae10da6e71ea60146190155 /sway/container.c | |
parent | Merge pull request #495 from gpyh/docswaybar (diff) | |
download | sway-8ddafeeaae44db77bfdb55d1776513d88a58f68e.tar.gz sway-8ddafeeaae44db77bfdb55d1776513d88a58f68e.tar.zst sway-8ddafeeaae44db77bfdb55d1776513d88a58f68e.zip |
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.c | 2 |
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) { | |||
143 | } | 143 | } |
144 | } | 144 | } |
145 | if (!ws_name) { | 145 | if (!ws_name) { |
146 | ws_name = workspace_next_name(); | 146 | ws_name = workspace_next_name(output->name); |
147 | } | 147 | } |
148 | 148 | ||
149 | // create and initilize default workspace | 149 | // create and initilize default workspace |