diff options
author | 2018-06-02 08:09:18 -0700 | |
---|---|---|
committer | 2018-06-02 08:09:18 -0700 | |
commit | b0f2fd94791708a84aac2eccc57855a4ce8b6ec0 (patch) | |
tree | 919f22247b71c5562b3c1caff4f0bfa9dfcf0528 /sway/commands/bar/id.c | |
parent | Merge pull request #2080 from frsfnrrg/keyboard-remodeling (diff) | |
parent | Fix infinite loop in peek_line for EOF blanks (diff) | |
download | sway-b0f2fd94791708a84aac2eccc57855a4ce8b6ec0.tar.gz sway-b0f2fd94791708a84aac2eccc57855a4ce8b6ec0.tar.zst sway-b0f2fd94791708a84aac2eccc57855a4ce8b6ec0.zip |
Merge pull request #2070 from RedSoxFan/generic-config-blocks
Make command block implementation generic
Diffstat (limited to 'sway/commands/bar/id.c')
-rw-r--r-- | sway/commands/bar/id.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/commands/bar/id.c b/sway/commands/bar/id.c index c1e56f03..6ce86fef 100644 --- a/sway/commands/bar/id.c +++ b/sway/commands/bar/id.c | |||
@@ -11,6 +11,9 @@ struct cmd_results *bar_cmd_id(int argc, char **argv) { | |||
11 | 11 | ||
12 | const char *name = argv[0]; | 12 | const char *name = argv[0]; |
13 | const char *oldname = config->current_bar->id; | 13 | const char *oldname = config->current_bar->id; |
14 | if (strcmp(name, oldname) == 0) { | ||
15 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); // NOP | ||
16 | } | ||
14 | // check if id is used by a previously defined bar | 17 | // check if id is used by a previously defined bar |
15 | for (int i = 0; i < config->bars->length; ++i) { | 18 | for (int i = 0; i < config->bars->length; ++i) { |
16 | struct bar_config *find = config->bars->items[i]; | 19 | struct bar_config *find = config->bars->items[i]; |