diff options
Diffstat (limited to 'src/managers/CursorManager.cpp')
-rw-r--r-- | src/managers/CursorManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/CursorManager.cpp b/src/managers/CursorManager.cpp index 627ca5e1..68f020c2 100644 --- a/src/managers/CursorManager.cpp +++ b/src/managers/CursorManager.cpp @@ -50,7 +50,7 @@ CCursorManager::CCursorManager() { updateTheme(); - g_pHookSystem->hookDynamic("monitorLayoutChanged", [this](void* self, SCallbackInfo& info, std::any param) { this->updateTheme(); }); + static auto P = g_pHookSystem->hookDynamic("monitorLayoutChanged", [this](void* self, SCallbackInfo& info, std::any param) { this->updateTheme(); }); } void CCursorManager::dropBufferRef(CCursorManager::CCursorBuffer* ref) { |