diff --git a/stack.c b/stack.c index 42fe83c99..6e16a5cdf 100644 --- a/stack.c +++ b/stack.c @@ -25,7 +25,7 @@ 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. */ void @@ -36,6 +36,17 @@ stack_client_push(client_t *c) 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. * \param c The client. */ diff --git a/stack.h b/stack.h index 1cf54390f..4aff8fa1a 100644 --- a/stack.h +++ b/stack.h @@ -25,6 +25,7 @@ #include "structs.h" void stack_client_push(client_t *); +void stack_client_append(client_t *); void stack_client_delete(client_t *); #endif