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 <psychon@znc.in>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Uli Schlachter 2009-06-18 18:33:32 +02:00 committed by Julien Danjou
parent b811880c54
commit 5ad4cdcaf6
1 changed files with 6 additions and 11 deletions

View File

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