From a076806ce06ba18dca5e4438205166146f14fc43 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 10 Apr 2009 12:11:35 +0200 Subject: [PATCH] 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 Signed-off-by: Julien Danjou --- client.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client.c b/client.c index 0144c915d..16c5c61ee 100644 --- a/client.c +++ b/client.c @@ -305,7 +305,8 @@ typedef enum LAYER_ABOVE, LAYER_FULLSCREEN, LAYER_ONTOP, - LAYER_OUTOFSPACE + /** This one only used for counting and is not a real layer */ + LAYER_COUNT } layer_t; /** Get the real layer of a client according to its attribute (fullscreen, …) @@ -379,7 +380,7 @@ client_stack() } /* 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) if(client_layer_translator(node->client) == layer) config_win_vals[0] = client_stack_above(node->client,