aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bar/wrap_scroll.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-04-12 20:19:54 -0400
committerDrew DeVault <sir@cmpwn.com>2018-04-12 20:19:54 -0400
commitcd1b32453a9296c18b28bff71607aeb22987b5cd (patch)
treec653c6d525b471914c01a9d7ae543f521b6138ed /sway/commands/bar/wrap_scroll.c
parent8e06985cc1b479724446fba752e0fecfb998e87b (diff)
parent5785170421dc38437acde8bb61068cd16fda716c (diff)
downloadsway-cd1b32453a9296c18b28bff71607aeb22987b5cd.tar.xz
Merge branch 'wlroots'
Diffstat (limited to 'sway/commands/bar/wrap_scroll.c')
-rw-r--r--sway/commands/bar/wrap_scroll.c12
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) {
if ((error = checkarg(argc, "wrap_scroll", EXPECTED_EQUAL_TO, 1))) {
return error;
}
-
if (!config->current_bar) {
return cmd_results_new(CMD_FAILURE, "wrap_scroll", "No bar defined.");
}
-
if (strcasecmp("yes", argv[0]) == 0) {
config->current_bar->wrap_scroll = true;
- sway_log(L_DEBUG, "Enabling wrap scroll on bar: %s", config->current_bar->id);
+ wlr_log(L_DEBUG, "Enabling wrap scroll on bar: %s",
+ config->current_bar->id);
} else if (strcasecmp("no", argv[0]) == 0) {
config->current_bar->wrap_scroll = false;
- sway_log(L_DEBUG, "Disabling wrap scroll on bar: %s", config->current_bar->id);
+ wlr_log(L_DEBUG, "Disabling wrap scroll on bar: %s",
+ config->current_bar->id);
} else {
- error = cmd_results_new(CMD_INVALID, "wrap_scroll", "Invalid value %s", argv[0]);
- return error;
+ return cmd_results_new(CMD_INVALID,
+ "wrap_scroll", "Invalid value %s", argv[0]);
}
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}