stack: add stack_client_append()

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

13
stack.c
View File

@ -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.
*/ */

View File

@ -25,6 +25,7 @@
#include "structs.h" #include "structs.h"
void stack_client_push(client_t *); void stack_client_push(client_t *);
void stack_client_append(client_t *);
void stack_client_delete(client_t *); void stack_client_delete(client_t *);
#endif #endif