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:
parent
b811880c54
commit
5ad4cdcaf6
17
client.c
17
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.
|
||||
|
|
Loading…
Reference in New Issue