diff options
Diffstat (limited to 'sway/commands/bar/height.c')
-rw-r--r-- | sway/commands/bar/height.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/bar/height.c b/sway/commands/bar/height.c index eb576ab3..3160caed 100644 --- a/sway/commands/bar/height.c +++ b/sway/commands/bar/height.c | |||
@@ -8,14 +8,13 @@ struct cmd_results *bar_cmd_height(int argc, char **argv) { | |||
8 | if ((error = checkarg(argc, "height", EXPECTED_EQUAL_TO, 1))) { | 8 | if ((error = checkarg(argc, "height", EXPECTED_EQUAL_TO, 1))) { |
9 | return error; | 9 | return error; |
10 | } | 10 | } |
11 | |||
12 | int height = atoi(argv[0]); | 11 | int height = atoi(argv[0]); |
13 | if (height < 0) { | 12 | if (height < 0) { |
14 | return cmd_results_new(CMD_INVALID, "height", | 13 | return cmd_results_new(CMD_INVALID, "height", |
15 | "Invalid height value: %s", argv[0]); | 14 | "Invalid height value: %s", argv[0]); |
16 | } | 15 | } |
17 | |||
18 | config->current_bar->height = height; | 16 | config->current_bar->height = height; |
19 | sway_log(L_DEBUG, "Setting bar height to %d on bar: %s", height, config->current_bar->id); | 17 | wlr_log(L_DEBUG, "Setting bar height to %d on bar: %s", |
18 | height, config->current_bar->id); | ||
20 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); | 19 | return cmd_results_new(CMD_SUCCESS, NULL, NULL); |
21 | } | 20 | } |