applied Hiltjo's multimon mouse-based resize fix dd46d5b5
Anselm R Garbe · 2011-03-23 08:58 1 file(s) · +2 −2
dwm.c +2 −2
1365 1365
		case MotionNotify:
1366 1366
			nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1);
1367 1367
			nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1);
1368 -
			if(snap && nw >= selmon->wx && nw <= selmon->wx + selmon->ww
1369 -
			&& nh >= selmon->wy && nh <= selmon->wy + selmon->wh)
1368 +
			if(snap && c->mon->wx + nw >= selmon->wx && c->mon->wx + nw <= selmon->wx + selmon->ww
1369 +
			&& c->mon->wy + nh >= selmon->wy && c->mon->wy + nh <= selmon->wy + selmon->wh)
1370 1370
			{
1371 1371
				if(!c->isfloating && selmon->lt[selmon->sellt]->arrange
1372 1372
				&& (abs(nw - c->w) > snap || abs(nh - c->h) > snap))