Set back previous code in mouse_drag_tag

This commit is contained in:
Martin Duquesnoy 2012-01-18 01:43:34 +01:00
parent d26e1e8e55
commit 1e4aa46e46

View File

@ -73,7 +73,7 @@ static struct tag*
mouse_drag_tag(struct client *c, Window w)
{
struct barwin *b;
struct tag *t, *tt;
struct tag *t = NULL;
Window rw;
int d, u;
@ -83,12 +83,7 @@ mouse_drag_tag(struct client *c, Window w)
if(b->win == rw
&& (t = (struct tag*)b->ptr)
&& t != c->tag)
{
/* Check if tag exist */
TAILQ_FOREACH(tt, &c->screen->tags, next)
if(tt == t)
return t;
}
return t;
return NULL;
}