From 5ad4cdcaf6d2c487c3a292059d50accdbf09f3a9 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 18 Jun 2009 18:33:32 +0200 Subject: [PATCH] Inline client_real_stack() This function is only called from one place and there is no reason not to inline it there. Signed-off-by: Uli Schlachter Signed-off-by: Julien Danjou --- client.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/client.c b/client.c index c2a3e081..2ad09059 100644 --- a/client.c +++ b/client.c @@ -372,12 +372,16 @@ client_layer_translator(client_t *c) * \todo It might be worth stopping to restack everyone and only stack `c' * relatively to the first matching in the list. */ -static void -client_real_stack(void) +void +client_stack_refresh() { uint32_t config_win_vals[2]; layer_t layer; + if (!globalconf.client_need_stack_refresh) + return; + globalconf.client_need_stack_refresh = false; + config_win_vals[0] = XCB_NONE; config_win_vals[1] = XCB_STACK_MODE_ABOVE; @@ -424,15 +428,6 @@ client_real_stack(void) } } -void -client_stack_refresh() -{ - if (!globalconf.client_need_stack_refresh) - return; - globalconf.client_need_stack_refresh = false; - client_real_stack(); -} - /** Manage a new client. * \param w The window. * \param wgeom Window geometry.