applied another patch of Hiltjo, thanks

master
Anselm R Garbe 2011-03-25 14:06:46 +00:00
parent 3c48858ffa
commit 96f9855248
1 changed files with 1 additions and 1 deletions

2
dwm.c
View File

@ -1365,7 +1365,7 @@ resizemouse(const Arg *arg) {
case MotionNotify: case MotionNotify:
nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1); nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1);
nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1); nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1);
if(snap && c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww if(c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww
&& c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh) && c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh)
{ {
if(!c->isfloating && selmon->lt[selmon->sellt]->arrange if(!c->isfloating && selmon->lt[selmon->sellt]->arrange