diff --git a/ewmh.c b/ewmh.c index 429b96ee4..8a1dfcf1c 100644 --- a/ewmh.c +++ b/ewmh.c @@ -462,7 +462,8 @@ ewmh_process_client_message(xcb_client_message_event_t *ev) { lua_State *L = globalconf_get_lua_State(); luaA_object_push(L, globalconf.tags.tab[idx]); - luaA_object_emit_signal(L, -1, "request::select", 0); + lua_pushstring(L, "ewmh"); + luaA_object_emit_signal(L, -1, "request::select", 1); lua_pop(L, 1); } } diff --git a/objects/tag.c b/objects/tag.c index e0dbc6ff1..0bc37c706 100644 --- a/objects/tag.c +++ b/objects/tag.c @@ -203,8 +203,9 @@ #include "ewmh.h" #include "luaa.h" -/** +/** When a tag requests to be selected. * @signal request::select + * @tparam string context The reason why it was called. */ /**