comparison client.c @ 465:590575d080fe

offscreen client appearance fixes
author arg@mmvi
date Fri, 15 Sep 2006 10:54:32 +0200
parents bd32d89ed9d5
children 298be2d65d2e
comparison
equal deleted inserted replaced
464:bd32d89ed9d5 465:590575d080fe
278 } 278 }
279 if(sticky == TopRight || sticky == BotRight) 279 if(sticky == TopRight || sticky == BotRight)
280 c->x = right - c->w; 280 c->x = right - c->w;
281 if(sticky == BotLeft || sticky == BotRight) 281 if(sticky == BotLeft || sticky == BotRight)
282 c->y = bottom - c->h; 282 c->y = bottom - c->h;
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;
283 293
284 resizetitle(c); 294 resizetitle(c);
285 wc.x = c->x; 295 wc.x = c->x;
286 wc.y = c->y; 296 wc.y = c->y;
287 wc.width = c->w; 297 wc.width = c->w;