Tag: Fixed segfault in tag_transfert while changing client from one screen to another.

This commit is contained in:
Martin Duquesnoy 2009-07-16 13:51:39 +02:00
parent eddf5c24be
commit ec834a4cbc

View File

@ -96,13 +96,13 @@ tag_transfert(Client *c, int tag)
{
screen_get_sel();
if(!c || c->tag == tag)
return;
CHECK(c);
if(!tag)
tag = 1;
c->tag = tag;
c->screen = selscreen;
arrange(c->screen, True);