diff options
author | Half-Shot <half-shot@molrams.com> | 2015-08-20 22:29:36 +0100 |
---|---|---|
committer | Half-Shot <half-shot@molrams.com> | 2015-08-20 22:29:36 +0100 |
commit | 68213d57c5c758d05582ef8a9f0db226ddbaefc7 (patch) | |
tree | e177cdcf8066e7e55b5698b44c7d959af9aff247 /sway/commands.c | |
parent | 713bf29ec901b711d782e96721898c32fcd5d56e (diff) |
Fixed style errors
Diffstat (limited to 'sway/commands.c')
-rw-r--r-- | sway/commands.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sway/commands.c b/sway/commands.c index 5d79104f..af4cd56f 100644 --- a/sway/commands.c +++ b/sway/commands.c @@ -206,7 +206,7 @@ static bool cmd_floating(struct sway_config *config, int argc, char **argv) { if (!view->is_floating) { // Remove view from its current location destroy_container(remove_child(view)); - + // and move it into workspace floating add_floating(active_workspace,view); view->x = (active_workspace->width - view->width)/2; @@ -356,11 +356,9 @@ static bool cmd_move(struct sway_config *config, int argc, char **argv) { move_container(view,&root_container,MOVE_UP); } else if (strcasecmp(argv[0], "down") == 0) { move_container(view,&root_container,MOVE_DOWN); - } else - { + } else { return false; } - return true; } @@ -606,7 +604,7 @@ static struct cmd_handler handlers[] = { { "kill", cmd_kill }, { "layout", cmd_layout }, { "log_colors", cmd_log_colors }, - { "move",cmd_move}, + { "move", cmd_move}, { "reload", cmd_reload }, { "set", cmd_set }, { "split", cmd_split }, |