diff options
author | Kristóf Marussy <kris7topher@gmail.com> | 2020-05-02 19:55:34 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2024-01-27 16:13:36 +0100 |
commit | 104057a7ea34ad3fa4b202668bb6d66550483f0b (patch) | |
tree | 5246473e2af53a0180bfa295f9c358291e0573ad /sway/commands/workspace.c | |
parent | build: bump version to 1.10-dev (diff) | |
download | sway-patch-for/master.tar.gz sway-patch-for/master.tar.zst sway-patch-for/master.zip |
Override outputs with the workspace commandpatch-for/master
Diffstat (limited to 'sway/commands/workspace.c')
-rw-r--r-- | sway/commands/workspace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c index 03e488ba..8536929e 100644 --- a/sway/commands/workspace.c +++ b/sway/commands/workspace.c | |||
@@ -158,6 +158,10 @@ struct cmd_results *cmd_workspace(int argc, char **argv) { | |||
158 | return cmd_results_new(CMD_FAILURE, | 158 | return cmd_results_new(CMD_FAILURE, |
159 | "Unable to allocate workspace output"); | 159 | "Unable to allocate workspace output"); |
160 | } | 160 | } |
161 | if (output_location + 1 < argc) { | ||
162 | list_free_items_and_destroy(wsc->outputs); | ||
163 | wsc->outputs = create_list(); | ||
164 | } | ||
161 | for (int i = output_location + 1; i < argc; ++i) { | 165 | for (int i = output_location + 1; i < argc; ++i) { |
162 | list_add(wsc->outputs, strdup(argv[i])); | 166 | list_add(wsc->outputs, strdup(argv[i])); |
163 | } | 167 | } |