diff --git a/client.c b/client.c index c88242884..44f36c0be 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 72a251e95..ab5f67657 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.