diff options
Diffstat (limited to 'sway/commands/bar/modifier.c')
-rw-r--r-- | sway/commands/bar/modifier.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/bar/modifier.c b/sway/commands/bar/modifier.c index 09025fff..b5a16f45 100644 --- a/sway/commands/bar/modifier.c +++ b/sway/commands/bar/modifier.c | |||
@@ -20,15 +20,14 @@ struct cmd_results *bar_cmd_modifier(int argc, char **argv) { | |||
20 | uint32_t tmp_mod; | 20 | uint32_t tmp_mod; |
21 | if ((tmp_mod = get_modifier_mask_by_name(split->items[i])) > 0) { | 21 | if ((tmp_mod = get_modifier_mask_by_name(split->items[i])) > 0) { |
22 | mod |= tmp_mod; | 22 | mod |= tmp_mod; |
23 | continue; | ||
24 | } else { | 23 | } else { |
25 | error = cmd_results_new(CMD_INVALID, "modifier", | 24 | error = cmd_results_new(CMD_INVALID, "modifier", |
26 | "Unknown modifier '%s'", split->items[i]); | 25 | "Unknown modifier '%s'", split->items[i]); |
27 | free_flat_list(split); | 26 | list_free_items_and_destroy(split); |
28 | return error; | 27 | return error; |
29 | } | 28 | } |
30 | } | 29 | } |
31 | free_flat_list(split); | 30 | list_free_items_and_destroy(split); |
32 | config->current_bar->modifier = mod; | 31 | config->current_bar->modifier = mod; |
33 | wlr_log(WLR_DEBUG, | 32 | wlr_log(WLR_DEBUG, |
34 | "Show/Hide the bar when pressing '%s' in hide mode.", argv[0]); | 33 | "Show/Hide the bar when pressing '%s' in hide mode.", argv[0]); |