From 17759578fae9bac4aed2c1b7a16a10c1bc0835ed Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 28 Aug 2009 17:53:48 +0200 Subject: [PATCH] client: merge lower code Signed-off-by: Julien Danjou --- client.c | 10 +++++++++- client.h | 15 --------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/client.c b/client.c index c8824288..44f36c0b 100644 --- a/client.c +++ b/client.c @@ -1535,7 +1535,15 @@ static int luaA_client_lower(lua_State *L) { client_t *c = luaA_client_checkudata(L, 1); - client_lower(c); + + stack_client_push(c); + + /* Traverse all transient layers. */ + for(client_t *tc = c->transient_for; tc; tc = tc->transient_for) + stack_client_push(tc); + + client_stack(); + return 0; } diff --git a/client.h b/client.h index 72a251e9..ab5f6765 100644 --- a/client.h +++ b/client.h @@ -245,21 +245,6 @@ client_raise(client_t *c) client_stack(); } -/** Put client on the end of the stack. - * \param c The client to lower. - */ -static inline void -client_lower(client_t *c) -{ - stack_client_push(c); - - /* Traverse all transient layers. */ - for(client_t *tc = c->transient_for; tc; tc = tc->transient_for) - stack_client_push(tc); - - client_stack(); -} - /** Check if a client has fixed size. * \param c A client. * \return A boolean value, true if the client has a fixed size.