client: floating state is only for normal type

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-07 23:55:38 +02:00
parent 5198f0a7b0
commit 02c3e360a8

View file

@ -623,7 +623,8 @@ client_resize(client_t *c, area_t geometry, bool hints)
void
client_setfloating(client_t *c, bool floating)
{
if(c->isfloating != floating)
if(c->isfloating != floating
&& (c->type == WINDOW_TYPE_NORMAL))
{
if((c->isfloating = floating))
{