summaryrefslogtreecommitdiffstats
path: root/sway/commands/titlebar_border_thickness.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/titlebar_border_thickness.c')
-rw-r--r--sway/commands/titlebar_border_thickness.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sway/commands/titlebar_border_thickness.c b/sway/commands/titlebar_border_thickness.c
index c1e9bb52..3c5e9ba1 100644
--- a/sway/commands/titlebar_border_thickness.c
+++ b/sway/commands/titlebar_border_thickness.c
@@ -14,8 +14,7 @@ struct cmd_results *cmd_titlebar_border_thickness(int argc, char **argv) {
14 char *inv; 14 char *inv;
15 int value = strtol(argv[0], &inv, 10); 15 int value = strtol(argv[0], &inv, 10);
16 if (*inv != '\0' || value < 0 || value > config->titlebar_v_padding) { 16 if (*inv != '\0' || value < 0 || value > config->titlebar_v_padding) {
17 return cmd_results_new(CMD_FAILURE, "titlebar_border_thickness", 17 return cmd_results_new(CMD_FAILURE, "Invalid size specified");
18 "Invalid size specified");
19 } 18 }
20 19
21 config->titlebar_border_thickness = value; 20 config->titlebar_border_thickness = value;
@@ -26,5 +25,5 @@ struct cmd_results *cmd_titlebar_border_thickness(int argc, char **argv) {
26 output_damage_whole(output); 25 output_damage_whole(output);
27 } 26 }
28 27
29 return cmd_results_new(CMD_SUCCESS, NULL, NULL); 28 return cmd_results_new(CMD_SUCCESS, NULL);
30} 29}