mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
Make inotify optional
This time keeping the ability to fall back to the old polling method.
This commit is contained in:
committed by
Carlos R. Mafra
parent
118a93808a
commit
c7868fa405
@@ -897,7 +897,7 @@ void wReadStaticDefaults(WMPropList * dict)
|
||||
}
|
||||
}
|
||||
|
||||
void wDefaultsCheckDomains(void)
|
||||
void wDefaultsCheckDomains(void* arg)
|
||||
{
|
||||
WScreen *scr;
|
||||
struct stat stbuf;
|
||||
@@ -1016,6 +1016,10 @@ void wDefaultsCheckDomains(void)
|
||||
}
|
||||
WDRootMenu->timestamp = stbuf.st_mtime;
|
||||
}
|
||||
#ifndef HAVE_INOTIFY
|
||||
if (!arg)
|
||||
WMAddTimerHandler(DEFAULTS_CHECK_INTERVAL, wDefaultsCheckDomains, arg);
|
||||
#endif
|
||||
}
|
||||
|
||||
void wReadDefaults(WScreen * scr, WMPropList * new_dict)
|
||||
|
||||
Reference in New Issue
Block a user