sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 7df38ce9dade4708fb658bab88eb5eb4824d3556
parent c6c3a8e7586c0fe14fba2fcd3fc856765169250e
Author: Zandr Martin <zandrmartin+git@gmail.com>
Date:   Sat, 28 May 2016 08:35:58 -0500

remove alphabetic sorting from sort_workspaces

also add a couple missing spaces to container.c (unrelated)

Diffstat:
Msway/commands.c | 4++--
Msway/output.c | 2--
2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/sway/commands.c b/sway/commands.c @@ -2328,7 +2328,7 @@ static struct cmd_results *cmd_workspace(int argc, char **argv) { if (!(ws=workspace_by_number(argv[1]))) { ws = workspace_create(argv[1]); } - }else if (strcasecmp(argv[0], "next") == 0) { + } else if (strcasecmp(argv[0], "next") == 0) { ws = workspace_next(); } else if (strcasecmp(argv[0], "prev") == 0) { ws = workspace_prev(); @@ -2343,7 +2343,7 @@ static struct cmd_results *cmd_workspace(int argc, char **argv) { } } } else { - if (!(ws= workspace_by_name(argv[0]))) { + if (!(ws = workspace_by_name(argv[0]))) { ws = workspace_create(argv[0]); } } diff --git a/sway/output.c b/sway/output.c @@ -193,8 +193,6 @@ int sort_workspace_cmp_qsort(const void *_a, const void *_b) { retval = -1; } else if (isdigit(b->name[0])) { retval = 1; - } else { - retval = strcmp(a->name, b->name); } return retval;