dwm.c
changeset 1380 add6eb26ebaa
parent 1379 ef09cf3eee26
child 1381 8b7836a471f8
equal deleted inserted replaced
1379:ef09cf3eee26 1380:add6eb26ebaa
  1145 		case Expose:
  1145 		case Expose:
  1146 		case MapRequest:
  1146 		case MapRequest:
  1147 			handler[ev.type](&ev);
  1147 			handler[ev.type](&ev);
  1148 			break;
  1148 			break;
  1149 		case MotionNotify:
  1149 		case MotionNotify:
  1150 			nw = MAX(ev.xmotion.x - ocx - 2*c->bw + 1, 1);
  1150 			nw = MAX(ev.xmotion.x - ocx - 2 * c->bw + 1, 1);
  1151 			nh = MAX(ev.xmotion.y - ocy - 2*c->bw + 1, 1);
  1151 			nh = MAX(ev.xmotion.y - ocy - 2 * c->bw + 1, 1);
  1152 
  1152 
  1153 			if(snap && nw >= wx && nw <= wx + ww
  1153 			if(snap && nw >= wx && nw <= wx + ww
  1154 			        && nh >= wy && nh <= wy + wh) {
  1154 			        && nh >= wy && nh <= wy + wh) {
  1155 				if(!c->isfloating && lt[sellt]->arrange
  1155 				if(!c->isfloating && lt[sellt]->arrange
  1156 				   && (abs(nw - c->w) > snap || abs(nh - c->h) > snap))
  1156 				   && (abs(nw - c->w) > snap || abs(nh - c->h) > snap))