client: add client_lower()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2afea46c49
commit
0634353648
14
client.h
14
client.h
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue