From 930997898b68ace2309acef1c672c0d0200ce7c7 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 2 Jun 2008 08:31:54 +0200 Subject: [PATCH] [client] Add unmanage function Signed-off-by: Julien Danjou --- client.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/client.c b/client.c index b010f658a..1a86587f9 100644 --- a/client.c +++ b/client.c @@ -1131,6 +1131,16 @@ luaA_client_name_set(lua_State *L) return 0; } +/** Stop managing a client. + */ +static int +luaA_client_unmanage(lua_State *L) +{ + client_t **c = luaL_checkudata(L, 1, "client"); + client_unmanage(*c); + return 0; +} + int luaA_client_userdata_new(client_t *c) { @@ -1170,6 +1180,7 @@ const struct luaL_reg awesome_client_meta[] = { "icon_set", luaA_client_icon_set }, { "mouse_resize", luaA_client_mouse_resize }, { "mouse_move", luaA_client_mouse_move }, + { "unmanage", luaA_client_unmanage }, { "__eq", luaA_client_eq }, { "__tostring", luaA_client_tostring }, { NULL, NULL }