From c2db3ad8ce797b2b80c9a5a047ed9dead1438d3e Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 30 Jul 2022 23:04:31 +0200 Subject: [PATCH] fix minor memory issue --- src/Compositor.cpp | 2 ++ src/managers/KeybindManager.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 714a0351..8cde125f 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -13,6 +13,8 @@ int handleCritSignal(int signo, void* data) { } CCompositor::CCompositor() { + wlr_log_init(WLR_INFO, NULL); + m_szInstanceSignature = GIT_COMMIT_HASH + std::string("_") + std::to_string(time(NULL)); setenv("HYPRLAND_INSTANCE_SIGNATURE", m_szInstanceSignature.c_str(), true); diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index b3729509..42ce6b89 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -254,7 +254,7 @@ bool CKeybindManager::handleKeybinds(const uint32_t& modmask, const std::string& Debug::log(ERR, "Inavlid handler in a keybind! (handler %s does not exist)", k.handler.c_str()); } else { // call the dispatcher - Debug::log(LOG, "Keybind triggered, calling dispatcher (%d, %s, %d)", modmask, key, keysym); + Debug::log(LOG, "Keybind triggered, calling dispatcher (%d, %s, %d)", modmask, key.c_str(), keysym); DISPATCHER->second(k.arg); }