applied ality's hardcode-0 patches e0f64e63
Anselm R. Garbe · 2006-09-29 18:21 1 file(s) · +5 −5
client.c +5 −5
216 216
217 217
	if(c->x + c->w + 2 * BORDERPX > sw)
218 218
		c->x = sw - c->w - 2 * BORDERPX;
219 -
	if(c->x < 0)
220 -
		c->x = 0;
219 +
	if(c->x < sx)
220 +
		c->x = sx;
221 221
	if(c->y + c->h + 2 * BORDERPX > sh)
222 -
		c->y = sh - c->h - 2;
222 +
		c->y = sh - c->h - 2 * BORDERPX;
223 223
	if(c->h != sh && c->y < bh)
224 224
		c->y = bh;
225 225
285 285
		c->y = bottom - c->h;
286 286
287 287
	/* offscreen appearance fixes */
288 -
	if(c->x + c->w < 0)
289 -
		c->x = 0;
288 +
	if(c->x + c->w < sx)
289 +
		c->x = sx;
290 290
	if(c->y + c->h < bh)
291 291
		c->y = bh;
292 292
	if(c->x > sw)