Layer 0 is also usable now

The check for a valid layer was wrong

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Thomas Janu 2008-04-09 13:53:18 +02:00 committed by Julien Danjou
parent 3af77fd56e
commit 7e301b5ef2
1 changed files with 1 additions and 1 deletions

View File

@ -72,7 +72,7 @@ client_loadprops(Client * c, int screen)
untag_client(c, tag); untag_client(c, tag);
if(prop[i]) 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); p_delete(&prop);