diff options
author | Geoff Greer <geoff@greer.fm> | 2018-05-10 23:35:37 -0700 |
---|---|---|
committer | Geoff Greer <geoff@greer.fm> | 2018-05-10 23:35:37 -0700 |
commit | 0a79983f9430263cf508535c7ce1aa27967b7ae8 (patch) | |
tree | 41d5df55b9fded9b0622821ad1be9d747cec53c2 /sway/commands | |
parent | 8d99edf7870fbf4bf72837d0dded3991ceed0a95 (diff) | |
download | sway-0a79983f9430263cf508535c7ce1aa27967b7ae8.tar.xz |
Allow setting border widths for normal borders using default_border.
In Sway 0.15, `default_border normal 1` would set 1px wide borders. This recreates that behavior.
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/default_border.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sway/commands/default_border.c b/sway/commands/default_border.c index fcd2c075..2e356d3d 100644 --- a/sway/commands/default_border.c +++ b/sway/commands/default_border.c @@ -15,12 +15,12 @@ struct cmd_results *cmd_default_border(int argc, char **argv) { config->border = B_NORMAL; } else if (strcmp(argv[0], "pixel") == 0) { config->border = B_PIXEL; - if (argc == 2) { - config->border_thickness = atoi(argv[1]); - } } else { return cmd_results_new(CMD_INVALID, "default_border", - "Expected 'default_border <none|normal|pixel>' or 'default_border pixel <px>'"); + "Expected 'default_border <none|normal|pixel>' or 'default_border <normal|pixel> <px>'"); + } + if (argc == 2) { + config->border_thickness = atoi(argv[1]); } return cmd_results_new(CMD_SUCCESS, NULL, NULL); |