aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bar/workspace_buttons.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/workspace_buttons.c
parent8e06985cc1b479724446fba752e0fecfb998e87b (diff)
parent5785170421dc38437acde8bb61068cd16fda716c (diff)
Merge branch 'wlroots'
Diffstat (limited to 'sway/commands/bar/workspace_buttons.c')
-rw-r--r--sway/commands/bar/workspace_buttons.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/sway/commands/bar/workspace_buttons.c b/sway/commands/bar/workspace_buttons.c
index 67dd2d31..6edc3a0d 100644
--- a/sway/commands/bar/workspace_buttons.c
+++ b/sway/commands/bar/workspace_buttons.c
@@ -8,20 +8,21 @@ struct cmd_results *bar_cmd_workspace_buttons(int argc, char **argv) {
if ((error = checkarg(argc, "workspace_buttons", EXPECTED_EQUAL_TO, 1))) {
return error;
}
-
if (!config->current_bar) {
- return cmd_results_new(CMD_FAILURE, "workspace_buttons", "No bar defined.");
+ return cmd_results_new(CMD_FAILURE,
+ "workspace_buttons", "No bar defined.");
}
-
if (strcasecmp("yes", argv[0]) == 0) {
config->current_bar->workspace_buttons = true;
- sway_log(L_DEBUG, "Enabling workspace buttons on bar: %s", config->current_bar->id);
+ wlr_log(L_DEBUG, "Enabling workspace buttons on bar: %s",
+ config->current_bar->id);
} else if (strcasecmp("no", argv[0]) == 0) {
config->current_bar->workspace_buttons = false;
- sway_log(L_DEBUG, "Disabling workspace buttons on bar: %s", config->current_bar->id);
+ wlr_log(L_DEBUG, "Disabling workspace buttons on bar: %s",
+ config->current_bar->id);
} else {
- error = cmd_results_new(CMD_INVALID, "workspace_buttons", "Invalid value %s", argv[0]);
- return error;
+ return cmd_results_new(CMD_INVALID, "workspace_buttons",
+ "Invalid value %s", argv[0]);
}
return cmd_results_new(CMD_SUCCESS, NULL, NULL);
}