client: add client_lower()

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-11-12 11:25:04 +01:00
parent 2afea46c49
commit 0634353648
1 changed files with 13 additions and 1 deletions

View File

@ -71,7 +71,7 @@ int luaA_client_userdata_new(lua_State *, client_t *);
DO_SLIST(client_t, client, client_unref) 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. * \param c The client to raise.
*/ */
static inline void static inline void
@ -84,6 +84,18 @@ client_raise(client_t *c)
client_stack(); 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. /** Check if a client has fixed size.
* \param c A client. * \param c A client.
* \return A boolean value, true if the client has a fixed size. * \return A boolean value, true if the client has a fixed size.