dwm.c
changeset 1315 ce355cea9bb8
parent 1314 f8c445284353
child 1317 40cd44593977
equal deleted inserted replaced
1314:f8c445284353 1315:ce355cea9bb8
   902 	c->h = wa->height;
   902 	c->h = wa->height;
   903 	c->oldbw = wa->border_width;
   903 	c->oldbw = wa->border_width;
   904 	if(c->w == sw && c->h == sh) {
   904 	if(c->w == sw && c->h == sh) {
   905 		c->x = sx;
   905 		c->x = sx;
   906 		c->y = sy;
   906 		c->y = sy;
   907 		c->bw = wa->border_width;
   907 		c->bw = 0;
   908 	}
   908 	}
   909 	else {
   909 	else {
   910 		if(c->x + c->w + 2 * c->bw > sx + sw)
   910 		if(c->x + c->w + 2 * c->bw > sx + sw)
   911 			c->x = sx + sw - c->w - 2 * c->bw;
   911 			c->x = sx + sw - c->w - 2 * c->bw;
   912 		if(c->y + c->h + 2 * c->bw > sy + sh)
   912 		if(c->y + c->h + 2 * c->bw > sy + sh)