offscreen client appearance fixes 28aba061
arg@mmvi · 2006-09-15 10:54 1 file(s) · +10 −0
client.c +10 −0
281 281
	if(sticky == BotLeft || sticky == BotRight)
282 282
		c->y = bottom - c->h;
283 283
284 +
	/* offscreen appearance fixes */
285 +
	if(c->x + c->w < 0)
286 +
		c->x = 0;
287 +
	if(c->y + c->h < bh)
288 +
		c->y = bh;
289 +
	if(c->x > sw)
290 +
		c->x = sw - c->w;
291 +
	if(c->y > sh)
292 +
		c->y = sh - c->h;
293 +
284 294
	resizetitle(c);
285 295
	wc.x = c->x;
286 296
	wc.y = c->y;