mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
client: add client_lower()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
2afea46c49
commit
0634353648
1 changed files with 13 additions and 1 deletions
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)
|
||||
|
||||
/** 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.
|
||||
|
|
Loading…
Reference in a new issue