Rename LAYER_OUTOFSPACE to LAYER_COUNT
The name LAYER_OUTOFSPACE suggests that this is a real layer on which windows can be put, but it's only used as an integer which describes the maximum allowed / used layer. Therefor, renaming it to LAYER_COUNT and adding a comment which describes this might make sense. Signed-off-by: Uli Schlachter <psychon@znc.in> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8f5f965fab
commit
a076806ce0
5
client.c
5
client.c
|
@ -305,7 +305,8 @@ typedef enum
|
||||||
LAYER_ABOVE,
|
LAYER_ABOVE,
|
||||||
LAYER_FULLSCREEN,
|
LAYER_FULLSCREEN,
|
||||||
LAYER_ONTOP,
|
LAYER_ONTOP,
|
||||||
LAYER_OUTOFSPACE
|
/** This one only used for counting and is not a real layer */
|
||||||
|
LAYER_COUNT
|
||||||
} layer_t;
|
} layer_t;
|
||||||
|
|
||||||
/** Get the real layer of a client according to its attribute (fullscreen, …)
|
/** Get the real layer of a client according to its attribute (fullscreen, …)
|
||||||
|
@ -379,7 +380,7 @@ client_stack()
|
||||||
}
|
}
|
||||||
|
|
||||||
/* then stack clients */
|
/* then stack clients */
|
||||||
for(layer = LAYER_BELOW; layer < LAYER_OUTOFSPACE; layer++)
|
for(layer = LAYER_BELOW; layer < LAYER_COUNT; layer++)
|
||||||
for(node = last; node; node = node->prev)
|
for(node = last; node; node = node->prev)
|
||||||
if(client_layer_translator(node->client) == layer)
|
if(client_layer_translator(node->client) == layer)
|
||||||
config_win_vals[0] = client_stack_above(node->client,
|
config_win_vals[0] = client_stack_above(node->client,
|
||||||
|
|
Loading…
Reference in New Issue