From 5d87bccbc21926a35a6c524f3ba74414b560b4f1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 10 Nov 2008 15:43:04 +0100 Subject: [PATCH] client: add support for transient_for in Lua 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 247a4425f..4c3900db9 100644 --- a/client.c +++ b/client.c @@ -1349,6 +1349,7 @@ luaA_client_newindex(lua_State *L) * \lfield opacity The client opacity between 0 and 1. * \lfield ontop The client is on top of every other windows. * \lfield fullscreen The client is fullscreen or not. + * \lfield transient_for Return the client the window is transient for. */ static int luaA_client_index(lua_State *L) @@ -1375,6 +1376,9 @@ luaA_client_index(lua_State *L) case A_TK_NAME: lua_pushstring(L, (*c)->name); break; + case A_TK_TRANSIENT_FOR: + if((*c)->transient_for) + return luaA_client_userdata_new(L, (*c)->transient_for); case A_TK_SKIP_TASKBAR: lua_pushboolean(L, (*c)->skiptb); break; diff --git a/common/tokenize.gperf b/common/tokenize.gperf index 02d478709..0cb0d0bd8 100644 --- a/common/tokenize.gperf +++ b/common/tokenize.gperf @@ -88,6 +88,7 @@ titlebar top topleft topright +transient_for true type urgent