1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-15 17:47:09 +00:00

Don't prefix mouse hook with conky_ twice.

This fixes #1438.
This commit is contained in:
Brenden Matthews 2023-02-28 22:29:02 -05:00 committed by Brenden Matthews
parent 2344abb1c7
commit 55947d0182

View File

@ -496,8 +496,8 @@ bool llua_mouse_hook(const EventT &ev) {
if ((lua_L == nullptr) || lua_mouse_hook.get(*state).empty()) { if ((lua_L == nullptr) || lua_mouse_hook.get(*state).empty()) {
return false; return false;
} }
const std::string func = "conky_" + lua_mouse_hook.get(*state); const std::string func = lua_mouse_hook.get(*state);
lua_getglobal(lua_L, func.c_str()); lua_getglobal(lua_L, lua_mouse_hook.get(*state).c_str());
ev.push_lua_table(lua_L); ev.push_lua_table(lua_L);