diff options
author | Jenkins CI <jenkins@llarimar.marussy.com> | 2024-04-22 07:49:03 +0300 |
---|---|---|
committer | Jenkins CI <jenkins@llarimar.marussy.com> | 2024-04-22 07:49:03 +0300 |
commit | 955ad2704c3f47099cae07d899667f6ac4244722 (patch) | |
tree | c0688c7abca6e63587f91604b64ed2790b261a0c /sway | |
parent | server: Use wlr_renderer_get_texture_formats (diff) | |
parent | Override outputs with the workspace command (diff) | |
download | sway-955ad2704c3f47099cae07d899667f6ac4244722.tar.gz sway-955ad2704c3f47099cae07d899667f6ac4244722.tar.zst sway-955ad2704c3f47099cae07d899667f6ac4244722.zip |
Merge commit '104057a7ea34ad3fa4b202668bb6d66550483f0b' into HEAD
Diffstat (limited to 'sway')
-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 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 | } |