diff options
author | okan <okan> | 2015-08-21 15:55:39 +0000 |
---|---|---|
committer | okan <okan> | 2015-08-21 15:55:39 +0000 |
commit | a79253abdc9a66fb22e1e88c9514013605610daa (patch) | |
tree | 0c46ce04098cb00a77a2a95c846e6827307a361c /conf.c | |
parent | 871c9f24ba413a7c528ddff2d5c4c8f1601364f3 (diff) | |
download | cwm-a79253abdc9a66fb22e1e88c9514013605610daa.tar.gz cwm-a79253abdc9a66fb22e1e88c9514013605610daa.tar.xz cwm-a79253abdc9a66fb22e1e88c9514013605610daa.zip |
Leave command list order from .cwmrc alone; remove sort.
Diffstat (limited to 'conf.c')
-rw-r--r-- | conf.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/conf.c b/conf.c index 1ba2c54..09f0ddb 100644 --- a/conf.c +++ b/conf.c @@ -40,7 +40,7 @@ static void conf_unbind_mouse(struct conf *, struct binding *); int conf_cmd_add(struct conf *c, const char *name, const char *path) { - struct cmd *cmd, *prev; + struct cmd *cmd; cmd = xmalloc(sizeof(*cmd)); @@ -55,13 +55,6 @@ conf_cmd_add(struct conf *c, const char *name, const char *path) TAILQ_INSERT_TAIL(&c->cmdq, cmd, entry); - /* keep queue sorted by name */ - while ((prev = TAILQ_PREV(cmd, cmd_q, entry)) && - (strcmp(prev->name, cmd->name) > 0)) { - TAILQ_REMOVE(&c->cmdq, cmd, entry); - TAILQ_INSERT_BEFORE(prev, cmd, entry); - } - return(1); } |