summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/client.c b/client.c
index dce06e9..33b3c56 100644
--- a/client.c
+++ b/client.c
@@ -281,6 +281,16 @@ resize(Client *c, Bool sizehints, Corner sticky) {
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 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 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;