diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-08-20 19:22:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-20 19:22:44 -0400 |
commit | 389610795b9ceff18f563b73e007b1b54d58bbb2 (patch) | |
tree | 8275b73d5c02b13884ca2fbc036fbb6069b01833 | |
parent | Merge pull request #2501 from RedSoxFan/fix-bad-free-swaynag (diff) | |
parent | Improve new workspace name selection (diff) | |
download | sway-389610795b9ceff18f563b73e007b1b54d58bbb2.tar.gz sway-389610795b9ceff18f563b73e007b1b54d58bbb2.tar.zst sway-389610795b9ceff18f563b73e007b1b54d58bbb2.zip |
Merge pull request #2502 from minus7/workspace-names
Improve new workspace name selection
-rw-r--r-- | sway/tree/workspace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/workspace.c b/sway/tree/workspace.c index 292f2c9a..cf50ee09 100644 --- a/sway/tree/workspace.c +++ b/sway/tree/workspace.c | |||
@@ -205,6 +205,7 @@ char *workspace_next_name(const char *output_name) { | |||
205 | && workspace_by_name(wso->workspace) == NULL) { | 205 | && workspace_by_name(wso->workspace) == NULL) { |
206 | free(target); | 206 | free(target); |
207 | target = strdup(wso->workspace); | 207 | target = strdup(wso->workspace); |
208 | break; | ||
208 | } | 209 | } |
209 | } | 210 | } |
210 | if (target != NULL) { | 211 | if (target != NULL) { |