From 0634353648186f492fdddc2a7c631b35c6b82d52 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 12 Nov 2008 11:25:04 +0100 Subject: [PATCH] client: add client_lower() Signed-off-by: Julien Danjou --- client.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/client.h b/client.h index 002654c7..e4956755 100644 --- a/client.h +++ b/client.h @@ -71,7 +71,7 @@ int luaA_client_userdata_new(lua_State *, client_t *); DO_SLIST(client_t, client, client_unref) -/** Put client on top of the stack +/** Put client on top of the stack. * \param c The client to raise. */ static inline void @@ -84,6 +84,18 @@ 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_append(c); + if(c->transient_for) + stack_client_append(c->transient_for); + 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.