stack: add stack_client_append()
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0cddba4d82
commit
2afea46c49
13
stack.c
13
stack.c
|
@ -25,7 +25,7 @@
|
||||||
|
|
||||||
extern awesome_t globalconf;
|
extern awesome_t globalconf;
|
||||||
|
|
||||||
/** Push the client at the beginning of the client stack history stack.
|
/** Push the client at the beginning of the client stack.
|
||||||
* \param c The client to push.
|
* \param c The client to push.
|
||||||
*/
|
*/
|
||||||
void
|
void
|
||||||
|
@ -36,6 +36,17 @@ stack_client_push(client_t *c)
|
||||||
ewmh_update_net_client_list_stacking(c->phys_screen);
|
ewmh_update_net_client_list_stacking(c->phys_screen);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** Push the client at the end of the client stack.
|
||||||
|
* \param c The client to push.
|
||||||
|
*/
|
||||||
|
void
|
||||||
|
stack_client_append(client_t *c)
|
||||||
|
{
|
||||||
|
client_node_t *node = client_node_client_add(&globalconf.stack, c);
|
||||||
|
client_node_list_append(&globalconf.stack, node);
|
||||||
|
ewmh_update_net_client_list_stacking(c->phys_screen);
|
||||||
|
}
|
||||||
|
|
||||||
/** Remove a client from stack history.
|
/** Remove a client from stack history.
|
||||||
* \param c The client.
|
* \param c The client.
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue