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:
parent
3af77fd56e
commit
7e301b5ef2
2
client.c
2
client.c
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue