From 1bac0c9dcbdbaa6d02737eb806c7eae5c3338d69 Mon Sep 17 00:00:00 2001 From: Christophe CURIS Date: Fri, 4 Jul 2014 23:28:39 +0200 Subject: [PATCH] wmaker: fixed flag to avoid reloading config multiple times The code includes a check whose goal is to avoid reloading more than once the configuration, in case Inotify would report more than one change during the event processing. But the flag was not set so mechanism was ineffective, which is probably ok anyway but as it is here let's make it work. Signed-off-by: Christophe CURIS --- src/event.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/event.c b/src/event.c index 49b62e7e..ac69102b 100644 --- a/src/event.c +++ b/src/event.c @@ -340,6 +340,7 @@ static void handle_inotify_events(void) if ((pevent->mask & IN_MODIFY) && oneShotFlag == 0) { wwarning(_("Inotify: Reading config files in defaults database.")); wDefaultsCheckDomains(NULL); + oneShotFlag = 1; } /* move to next event in the buffer */