tag: Add a context to request::select.

This commit is contained in:
Emmanuel Lepage Vallee 2019-11-30 23:57:47 -05:00 committed by Emmanuel Lepage-Vallee
parent 839dddee25
commit c5202a4870
2 changed files with 4 additions and 2 deletions

3
ewmh.c
View File

@ -462,7 +462,8 @@ ewmh_process_client_message(xcb_client_message_event_t *ev)
{ {
lua_State *L = globalconf_get_lua_State(); lua_State *L = globalconf_get_lua_State();
luaA_object_push(L, globalconf.tags.tab[idx]); 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); lua_pop(L, 1);
} }
} }

View File

@ -203,8 +203,9 @@
#include "ewmh.h" #include "ewmh.h"
#include "luaa.h" #include "luaa.h"
/** /** When a tag requests to be selected.
* @signal request::select * @signal request::select
* @tparam string context The reason why it was called.
*/ */
/** /**