# HG changeset patch # User arg@mmvi # Date 1158310472 -7200 # Node ID 590575d080fe98150b31df35e2f4901920b4a65f # Parent bd32d89ed9d517fb552c88294db0b564d0823974 offscreen client appearance fixes diff -r bd32d89ed9d5 -r 590575d080fe client.c --- a/client.c Fri Sep 15 10:49:05 2006 +0200 +++ b/client.c Fri Sep 15 10:54:32 2006 +0200 @@ -281,6 +281,16 @@ if(sticky == BotLeft || sticky == BotRight) c->y = bottom - c->h; + /* offscreen appearance fixes */ + if(c->x + c->w < 0) + c->x = 0; + if(c->y + c->h < bh) + c->y = bh; + if(c->x > sw) + c->x = sw - c->w; + if(c->y > sh) + c->y = sh - c->h; + resizetitle(c); wc.x = c->x; wc.y = c->y;