diff options
Diffstat (limited to 'sway/commands/bar/wrap_scroll.c')
-rw-r--r-- | sway/commands/bar/wrap_scroll.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sway/commands/bar/wrap_scroll.c b/sway/commands/bar/wrap_scroll.c index 4ed1f12a..7386f82c 100644 --- a/sway/commands/bar/wrap_scroll.c +++ b/sway/commands/bar/wrap_scroll.c | |||
@@ -8,20 +8,20 @@ struct cmd_results *bar_cmd_wrap_scroll(int argc, char **argv) { | |||
8 | if ((error = checkarg(argc, "wrap_scroll", EXPECTED_EQUAL_TO, 1))) { | 8 | if ((error = checkarg(argc, "wrap_scroll", EXPECTED_EQUAL_TO, 1))) { |
9 | return error; | 9 | return error; |
10 | } | 10 | } |
11 | |||
12 | if (!config->current_bar) { | 11 | if (!config->current_bar) { |
13 | return cmd_results_new(CMD_FAILURE, "wrap_scroll", "No bar defined."); | 12 | return cmd_results_new(CMD_FAILURE, "wrap_scroll", "No bar defined."); |
14 | } | 13 | } |
15 | |||
16 | if (strcasecmp("yes", argv[0]) == 0) { | 14 | if (strcasecmp("yes", argv[0]) == 0) { |
17 | config->current_bar->wrap_scroll = true; | 15 | config->current_bar->wrap_scroll = true; |
18 | sway_log(L_DEBUG, "Enabling wrap scroll on bar: %s", config->current_bar->id); | 16 | wlr_log(L_DEBUG, "Enabling wrap scroll on bar: %s", |
17 | config->current_bar->id); | ||
19 | } else if (strcasecmp("no", argv[0]) == 0) { | 18 | } else if (strcasecmp("no", argv[0]) == 0) { |
20 | config->current_bar->wrap_scroll = false; | 19 | config->current_bar->wrap_scroll = false; |
21 | sway_log(L_DEBUG, "Disabling wrap scroll on bar: %s", config->current_bar->id); | 20 | wlr_log(L_DEBUG, "Disabling wrap scroll on bar: %s", |
21 | config->current_bar->id); | ||
22 | } else { | 22 | } else { |
23 | error = cmd_results_new(CMD_INVALID, "wrap_scroll", "Invalid value %s", argv[0]); | 23 | return cmd_results_new(CMD_INVALID, |
24 | return error; | 24 | "wrap_scroll", "Invalid value %s", argv[0]); |
25 | } | 25 | } |
26 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 26 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
27 | } | 27 | } |