From 55947d018246564dc35185236712044c88bf57b1 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Tue, 28 Feb 2023 22:29:02 -0500 Subject: [PATCH] Don't prefix mouse hook with conky_ twice. This fixes #1438. --- src/llua.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/llua.cc b/src/llua.cc index ea845cf7..b02b7b2e 100644 --- a/src/llua.cc +++ b/src/llua.cc @@ -496,8 +496,8 @@ bool llua_mouse_hook(const EventT &ev) { if ((lua_L == nullptr) || lua_mouse_hook.get(*state).empty()) { return false; } - const std::string func = "conky_" + lua_mouse_hook.get(*state); - lua_getglobal(lua_L, func.c_str()); + const std::string func = lua_mouse_hook.get(*state); + lua_getglobal(lua_L, lua_mouse_hook.get(*state).c_str()); ev.push_lua_table(lua_L);