mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
client: add support for transient_for in Lua
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
34c0244d5a
commit
5d87bccbc2
2 changed files with 5 additions and 0 deletions
4
client.c
4
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;
|
||||
|
|
|
@ -88,6 +88,7 @@ titlebar
|
|||
top
|
||||
topleft
|
||||
topright
|
||||
transient_for
|
||||
true
|
||||
type
|
||||
urgent
|
||||
|
|
Loading…
Reference in a new issue