From 7e301b5ef249320c55d70246fa894541ca253f3c Mon Sep 17 00:00:00 2001 From: Thomas Janu Date: Wed, 9 Apr 2008 13:53:18 +0200 Subject: [PATCH] Layer 0 is also usable now The check for a valid layer was wrong Signed-off-by: Julien Danjou --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 8017cc30a..051d0facf 100644 --- a/client.c +++ b/client.c @@ -72,7 +72,7 @@ client_loadprops(Client * c, int screen) untag_client(c, tag); if(prop[i]) - client_setfloating(c, prop[i] == '1', prop[i + 1] ? atoi(&prop[i + 1]) : prop[i] == '1' ? LAYER_FLOAT : LAYER_TILE); + client_setfloating(c, prop[i] == '1', (prop[i + 1] >= 0 && prop[i + 1] <= LAYER_FULLSCREEN) ? atoi(&prop[i + 1]) : prop[i] == '1' ? LAYER_FLOAT : LAYER_TILE); } p_delete(&prop);