aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/workspace.c
diff options
context:
space:
mode:
authorLibravatar Jenkins CI <jenkins@llarimar.marussy.com>2021-10-20 07:49:02 +0300
committerLibravatar Jenkins CI <jenkins@llarimar.marussy.com>2021-10-20 07:49:02 +0300
commitc82b969c79f50a780fe0d786a32a06e4d73651f4 (patch)
tree2f421a464d611b8a5bda1d8f71f7001dd3b7ea40 /sway/commands/workspace.c
parentxwayland: Clear wlr_xwayland_surface in handle_destroy (diff)
parentOverride outputs with the workspace command (diff)
downloadsway-c82b969c79f50a780fe0d786a32a06e4d73651f4.tar.gz
sway-c82b969c79f50a780fe0d786a32a06e4d73651f4.tar.zst
sway-c82b969c79f50a780fe0d786a32a06e4d73651f4.zip
Diffstat (limited to 'sway/commands/workspace.c')
-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 a6a0beda..79f3667a 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 }