core: move to inotify for monitoring the config files
instead of manually polling every second which is not efficient, use inotify. an added bonus is that inotify is much much faster
This commit is contained in:
parent
0a0e56d99c
commit
8dd2cd41fb
13 changed files with 143 additions and 116 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include "../plugins/PluginSystem.hpp"
|
||||
#include "../managers/HookSystemManager.hpp"
|
||||
#include "../managers/LayoutManager.hpp"
|
||||
#include "../managers/eventLoop/EventLoopManager.hpp"
|
||||
#include "../config/ConfigManager.hpp"
|
||||
#include "../debug/HyprNotificationOverlay.hpp"
|
||||
#include <dlfcn.h>
|
||||
|
|
@ -72,7 +73,7 @@ APICALL bool HyprlandAPI::removeLayout(HANDLE handle, IHyprLayout* layout) {
|
|||
}
|
||||
|
||||
APICALL bool HyprlandAPI::reloadConfig() {
|
||||
g_pConfigManager->m_bForceReload = true;
|
||||
g_pEventLoopManager->doLater([] { g_pConfigManager->reload(); });
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue