applied Sanders patch 2eebebf2
Anselm R.Garbe · 2006-08-18 13:40 1 file(s) · +2 −6
client.c +2 −6
203 203
	c->border = 0;
204 204
	setsize(c);
205 205
206 -
	if(c->x + c->w > sw)
206 +
	if(c->x + c->w + 2 > sw)
207 207
		c->x = sw - c->w - 2;
208 208
	if(c->x < 0)
209 209
		c->x = 0;
210 -
	if(c->y + c->h > sh)
210 +
	if(c->y + c->h + 2 > sh)
211 211
		c->y = sh - c->h - 2;
212 212
	if(c->h != sh && c->y < bh)
213 213
		c->y = bh;
293 293
		if(c->maxh && c->h > c->maxh)
294 294
			c->h = c->maxh;
295 295
	}
296 -
	if(c->x > sw) /* might happen on restart */
297 -
		c->x = sw - c->w;
298 -
	if(c->y > sh)
299 -
		c->y = sh - c->h;
300 296
	if(sticky == TopRight || sticky == BotRight)
301 297
		c->x = right - c->w;
302 298
	if(sticky == BotLeft || sticky == BotRight)