aboutsummaryrefslogtreecommitdiff
path: root/sway/commands
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-09-01 10:38:02 -0400
committerGitHub <noreply@github.com>2018-09-01 10:38:02 -0400
commit692dc55ecaff66cf379aaf05a4a0c86f517a4dc1 (patch)
tree7542126a12e757066fc7e41e0de3661ef2bd0b7e /sway/commands
parent4ac67d6408fea10aa229b266d09c2d4f92692691 (diff)
parent016d0455f809ac3b8da8a040611d691b96502c15 (diff)
Merge pull request #2549 from RyanDwyer/border-improvements
Implement deprecated new_window and new_float commands
Diffstat (limited to 'sway/commands')
-rw-r--r--sway/commands/border.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/commands/border.c b/sway/commands/border.c
index 9c19e20a..9502c877 100644
--- a/sway/commands/border.c
+++ b/sway/commands/border.c
@@ -27,9 +27,6 @@ struct cmd_results *cmd_border(int argc, char **argv) {
view->border = B_NORMAL;
} else if (strcmp(argv[0], "pixel") == 0) {
view->border = B_PIXEL;
- if (argc == 2) {
- view->border_thickness = atoi(argv[1]);
- }
} else if (strcmp(argv[0], "toggle") == 0) {
view->border = (view->border + 1) % 3;
} else {
@@ -37,6 +34,9 @@ struct cmd_results *cmd_border(int argc, char **argv) {
"Expected 'border <none|normal|pixel|toggle>' "
"or 'border pixel <px>'");
}
+ if (argc == 2) {
+ view->border_thickness = atoi(argv[1]);
+ }
if (container_is_floating(view->swayc)) {
container_set_geometry_from_floating_view(view->swayc);