client: expose .urgent

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Kanru Chen 2008-07-29 20:37:17 +08:00 committed by Julien Danjou
parent 8649c6cb8c
commit f36acc7384
2 changed files with 5 additions and 0 deletions

View file

@ -1214,6 +1214,7 @@ luaA_client_newindex(lua_State *L)
* \lfield border_color The client border color. * \lfield border_color The client border color.
* \lfield coords The client coordinates. * \lfield coords The client coordinates.
* \lfield titlebar The client titlebar. * \lfield titlebar The client titlebar.
* \lfield urgent The client urgent state.
*/ */
static int static int
luaA_client_index(lua_State *L) luaA_client_index(lua_State *L)
@ -1296,6 +1297,9 @@ luaA_client_index(lua_State *L)
if((*c)->titlebar) if((*c)->titlebar)
return luaA_titlebar_userdata_new(globalconf.L, (*c)->titlebar); return luaA_titlebar_userdata_new(globalconf.L, (*c)->titlebar);
return 0; return 0;
case A_TK_URGENT:
lua_pushboolean(L, (*c)->isurgent);
break;
default: default:
return 0; return 0;
} }

View file

@ -62,6 +62,7 @@ top
topleft topleft
topright topright
true true
urgent
visible visible
vertical vertical
width width