From 2fb7b4d69a15b2cda28b05f6e7619ac43546f37c Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 13 Nov 2007 22:29:33 +0100 Subject: [PATCH] fix Rule linked list handling in config it seems that I was interrupted when I was coding new Rule handling in linked list --- config.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/config.c b/config.c index bd18188c..d82445bc 100644 --- a/config.c +++ b/config.c @@ -459,6 +459,14 @@ parse_config(const char *confpatharg, awesome_config *awesomeconf) rule->screen = cfg_getint(cfgsectmp, "screen"); if(rule->screen >= get_screen_count(awesomeconf->display)) rule->screen = 0; + + if(j < cfg_size(cfg_rules, "rule") - 1) + { + rule->next = p_new(Rule, 1); + rule = rule->next; + } + else + rule->next = NULL; } } else @@ -667,8 +675,6 @@ uicb_reloadconfig(awesome_config *awesomeconf, c->tags[0] = 1; saveprops(c, awesomeconf_first[c->screen].ntags); - if (!loadprops(c, awesomeconf_first[c->screen].ntags)) - applyrules(c, awesomeconf_first); } /* Cleanup after ourselves */