From 9af7b53b8442ced166a717ebb14cfa52216a898d Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 12 Nov 2008 11:27:58 +0100 Subject: [PATCH] client: add lower() method Signed-off-by: Julien Danjou --- client.c | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 4c3900db..28ab497d 100644 --- a/client.c +++ b/client.c @@ -1084,7 +1084,6 @@ luaA_client_tags(lua_State *L) /** Raise a client on top of others which are on the same layer. * \param L The Lua VM state. - * * \luastack * \lvalue A client. */ @@ -1096,6 +1095,19 @@ luaA_client_raise(lua_State *L) return 0; } +/** Lower a client on bottom of others which are on the same layer. + * \param L The Lua VM state. + * \luastack + * \lvalue A client. + */ +static int +luaA_client_lower(lua_State *L) +{ + client_t **c = luaA_checkudata(L, 1, "client"); + client_lower(*c); + return 0; +} + /** Redraw a client by unmapping and mapping it quickly. * \param L The Lua VM state. * @@ -1601,6 +1613,7 @@ const struct luaL_reg awesome_client_meta[] = { "kill", luaA_client_kill }, { "swap", luaA_client_swap }, { "raise", luaA_client_raise }, + { "lower", luaA_client_lower }, { "redraw", luaA_client_redraw }, { "mouse_resize", luaA_client_mouse_resize }, { "mouse_move", luaA_client_mouse_move },