Fix bar height code.
For some reason, there's a variable called `barheight` and another one
called `bh`. I got tricked into believing that `barheight` was the bar
height.
@@ -2983,7 +2983,7 @@ dragmouse(const Arg *arg)
abs((startx - ev.xmotion.x_root) *
(startx - ev.xmotion.x_root))) > 4069) {
dragging = 1;
- if (barheight ? ev.xmotion.y_root < barheight : ev.xmotion.y_root < 12) {
+ if (ev.xmotion.y_root < bh) {
tabdragging = 1;
}
}
@@ -3011,7 +3011,7 @@ dragmouse(const Arg *arg)
if ((ev.xmotion.time - lasttime) <= (1000 / 60))
continue;
lasttime = ev.xmotion.time;
- if (barheight ? ev.xmotion.y_root >= barheight : ev.xmotion.y_root >= 12) {
+ if (ev.xmotion.y_root >= bh) {
tabdragging = 0;
break;
}
