fix dragging lag
@@ -2191,6 +2191,7 @@ movemouse(const Arg *arg)
if (!selmon->lt[selmon->sellt]->arrange || c->isfloating)
resize(c, nx, ny, c->w, c->h, 1);
+ if (ev.xmotion.y_root < selmon->my + bh + 100) {
if (ev.xmotion.x_root < selmon->mx ||
ev.xmotion.x_root > selmon->mx + selmon->mw ||
ev.xmotion.y_root < selmon->my ||
@@ -2200,13 +2201,16 @@ movemouse(const Arg *arg)
sendmon(c, m);
selmon = m;
focus(NULL);
+ drawbar(selmon);
}
- } else {
- if (ev.xmotion.y_root < bh && tagx != getxtag(ev.xmotion.x_root)) {
+ }
+ if (ev.xmotion.y_root < selmon->my + bh &&
+ tagx != getxtag(ev.xmotion.x_root)) {
tagx = getxtag(ev.xmotion.x_root);
selmon->gesture = tagx + 1;
drawbar(selmon);
}
+
}
break;
}
