aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Jenkins CI <jenkins@llarimar.marussy.com>2024-03-15 07:49:03 +0200
committerLibravatar Jenkins CI <jenkins@llarimar.marussy.com>2024-03-15 07:49:03 +0200
commitcd8d9fd3b81f1f2d7c7402a0a80e0b0b0faec5b5 (patch)
tree6b0c444da2061ace76da5734405d0224379a4971
parentman: document that the scale might be adjusted (diff)
parentOverride outputs with the workspace command (diff)
downloadsway-master.tar.gz
sway-master.tar.zst
sway-master.zip
-rw-r--r--sway/commands/workspace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/commands/workspace.c b/sway/commands/workspace.c
index a14ebb20..37a201b4 100644
--- a/sway/commands/workspace.c
+++ b/sway/commands/workspace.c
@@ -157,6 +157,10 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
157 return cmd_results_new(CMD_FAILURE, 157 return cmd_results_new(CMD_FAILURE,
158 "Unable to allocate workspace output"); 158 "Unable to allocate workspace output");
159 } 159 }
160 if (output_location + 1 < argc) {
161 list_free_items_and_destroy(wsc->outputs);
162 wsc->outputs = create_list();
163 }
160 for (int i = output_location + 1; i < argc; ++i) { 164 for (int i = output_location + 1; i < argc; ++i) {
161 list_add(wsc->outputs, strdup(argv[i])); 165 list_add(wsc->outputs, strdup(argv[i]));
162 } 166 }