mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-23 22:52:34 +01:00
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 <christophe.curis@free.fr>
This commit is contained in:
committed by
Carlos R. Mafra
parent
af059d408b
commit
1bac0c9dcb
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user