diff options
author | Mikkel Oscar Lyderik <[email protected]> | 2016-03-04 16:44:49 +0100 |
---|---|---|
committer | Mikkel Oscar Lyderik <[email protected]> | 2016-03-04 16:44:49 +0100 |
commit | 8ddafeeaae44db77bfdb55d1776513d88a58f68e (patch) | |
tree | 4f4400de4a29dfa18ae10da6e71ea60146190155 /sway/layout.c | |
parent | 79bfd620d6f7a3d089898ec6391411c2c6b22668 (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/layout.c')
-rw-r--r-- | sway/layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/layout.c b/sway/layout.c index dca4e47f..e9998bc8 100644 --- a/sway/layout.c +++ b/sway/layout.c @@ -364,7 +364,7 @@ void move_workspace_to(swayc_t* workspace, swayc_t* destination) { // make sure source output has a workspace if (src_op->children->length == 0) { - char *ws_name = workspace_next_name(); + char *ws_name = workspace_next_name(src_op->name); swayc_t *ws = new_workspace(src_op, ws_name); ws->is_focused = true; free(ws_name); |