From a95fc407b54453d0251caea90077b809c99db150 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 18 Feb 2009 16:53:42 +0100 Subject: [PATCH] client: add .id field Signed-off-by: Julien Danjou --- client.c | 4 ++++ common/tokenize.gperf | 1 + 2 files changed, 5 insertions(+) diff --git a/client.c b/client.c index 612627bb..ac186dad 100644 --- a/client.c +++ b/client.c @@ -1644,6 +1644,7 @@ luaA_client_newindex(lua_State *L) * \param L The Lua VM state. * \return The number of elements pushed on stack. * \luastack + * \lfield id The window X id. * \lfield name The client title. * \lfield skip_taskbar True if the client does not want to be in taskbar. * \lfield type The window type (desktop, normal, dock, …). @@ -1799,6 +1800,9 @@ luaA_client_index(lua_State *L) return 0; } break; + case A_TK_ID: + lua_pushnumber(L, (*c)->win); + break; case A_TK_LEADER_ID: lua_pushnumber(L, (*c)->leader_win); break; diff --git a/common/tokenize.gperf b/common/tokenize.gperf index bd843cde..61fd96da 100644 --- a/common/tokenize.gperf +++ b/common/tokenize.gperf @@ -44,6 +44,7 @@ hide honorsizehints icon icon_name +id image instance key_press