fixed issue Sander reported 67c2124f
Anselm R.Garbe · 2006-08-17 09:35 1 file(s) · +3 −4
client.c +3 −4
285 285
{
286 286
	int bottom = c->y + c->h;
287 287
	int right = c->x + c->w;
288 -
	/*XConfigureEvent e;*/
289 288
	XWindowChanges wc;
290 289
291 290
	if(sizehints) {
302 301
		if(c->maxh && c->h > c->maxh)
303 302
			c->h = c->maxh;
304 303
	}
305 -
	if(c->x > right) /* might happen on restart */
306 -
		c->x = right - c->w;
307 -
	if(c->y > bottom)
304 +
	if(c->x > sw) /* might happen on restart */
305 +
		c->x = sw - c->w;
306 +
	if(c->y > sh)
308 307
		c->y = bottom - c->h;
309 308
	if(sticky == TopRight || sticky == BotRight)
310 309
		c->x = right - c->w;