From 1e4aa46e462c7bd91a50d8caaaa125868bf4ee43 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Wed, 18 Jan 2012 01:43:34 +0100 Subject: [PATCH] Set back previous code in mouse_drag_tag --- src/mouse.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) 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; }