client: add support for transient_for in Lua

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-10 15:43:04 +01:00
parent 34c0244d5a
commit 5d87bccbc2
2 changed files with 5 additions and 0 deletions

View file

@ -1349,6 +1349,7 @@ luaA_client_newindex(lua_State *L)
* \lfield opacity The client opacity between 0 and 1. * \lfield opacity The client opacity between 0 and 1.
* \lfield ontop The client is on top of every other windows. * \lfield ontop The client is on top of every other windows.
* \lfield fullscreen The client is fullscreen or not. * \lfield fullscreen The client is fullscreen or not.
* \lfield transient_for Return the client the window is transient for.
*/ */
static int static int
luaA_client_index(lua_State *L) luaA_client_index(lua_State *L)
@ -1375,6 +1376,9 @@ luaA_client_index(lua_State *L)
case A_TK_NAME: case A_TK_NAME:
lua_pushstring(L, (*c)->name); lua_pushstring(L, (*c)->name);
break; break;
case A_TK_TRANSIENT_FOR:
if((*c)->transient_for)
return luaA_client_userdata_new(L, (*c)->transient_for);
case A_TK_SKIP_TASKBAR: case A_TK_SKIP_TASKBAR:
lua_pushboolean(L, (*c)->skiptb); lua_pushboolean(L, (*c)->skiptb);
break; break;

View file

@ -88,6 +88,7 @@ titlebar
top top
topleft topleft
topright topright
transient_for
true true
type type
urgent urgent