client.c
changeset 952 4f66942cc63b
parent 946 b938876de936
child 953 d7de5c7bdbe4
equal deleted inserted replaced
951:3a0407d4b95b 952:4f66942cc63b
   270 			h = c->maxh;
   270 			h = c->maxh;
   271 		if(c->incw)
   271 		if(c->incw)
   272 			w -= (w - c->basew) % c->incw;
   272 			w -= (w - c->basew) % c->incw;
   273 		if(c->inch)
   273 		if(c->inch)
   274 			h -= (h - c->baseh) % c->inch;
   274 			h -= (h - c->baseh) % c->inch;
   275 		if(w <= 0 || h <= 0)
   275 	}
   276 			return;
   276 	if(w <= 0 || h <= 0)
   277 	}
   277 		return;
   278 	/* offscreen appearance fixes */
   278 	/* offscreen appearance fixes */
   279 	if(x > sw)
   279 	if(x > sw)
   280 		x = sw - w - 2 * c->border;
   280 		x = sw - w - 2 * c->border;
   281 	if(y > sh)
   281 	if(y > sh)
   282 		y = sh - h - 2 * c->border;
   282 		y = sh - h - 2 * c->border;