From 2afea46c493c72565be9fee9e29484b907722557 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 12 Nov 2008 11:23:28 +0100 Subject: [PATCH] stack: add stack_client_append() Signed-off-by: Julien Danjou --- stack.c | 13 ++++++++++++- stack.h | 1 + 2 files changed, 13 insertions(+), 1 deletion(-) 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