diff --git a/src/mouse.c b/src/mouse.c index 07cc1cc..8d3c5b0 100644 --- a/src/mouse.c +++ b/src/mouse.c @@ -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; }