Browse Source

Set back previous code in mouse_drag_tag

Martin Duquesnoy 12 years ago
parent
commit
1e4aa46e46
1 changed files with 2 additions and 7 deletions
  1. 2 7
      src/mouse.c

+ 2 - 7
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;
 }