From f36acc7384031c68c447816e6755a329df47cf90 Mon Sep 17 00:00:00 2001 From: Kanru Chen Date: Tue, 29 Jul 2008 20:37:17 +0800 Subject: [PATCH] client: expose .urgent 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 76bb606a..7e352e61 100644 --- a/client.c +++ b/client.c @@ -1214,6 +1214,7 @@ luaA_client_newindex(lua_State *L) * \lfield border_color The client border color. * \lfield coords The client coordinates. * \lfield titlebar The client titlebar. + * \lfield urgent The client urgent state. */ static int luaA_client_index(lua_State *L) @@ -1296,6 +1297,9 @@ luaA_client_index(lua_State *L) if((*c)->titlebar) return luaA_titlebar_userdata_new(globalconf.L, (*c)->titlebar); return 0; + case A_TK_URGENT: + lua_pushboolean(L, (*c)->isurgent); + break; default: return 0; } diff --git a/common/tokenize.gperf b/common/tokenize.gperf index ac5d92a3..8c3c32da 100644 --- a/common/tokenize.gperf +++ b/common/tokenize.gperf @@ -62,6 +62,7 @@ top topleft topright true +urgent visible vertical width