about summary refs log tree commit diff stats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/client.c b/client.c
index 98b46a3..efa9669 100644
--- a/client.c
+++ b/client.c
@@ -216,10 +216,10 @@ manage(Window w, XWindowAttributes *wa) {
 
 	if(c->x + c->w + 2 * BORDERPX > sw)
 		c->x = sw - c->w - 2 * BORDERPX;
-	if(c->x < 0)
-		c->x = 0;
+	if(c->x < sx)
+		c->x = sx;
 	if(c->y + c->h + 2 * BORDERPX > sh)
-		c->y = sh - c->h - 2;
+		c->y = sh - c->h - 2 * BORDERPX;
 	if(c->h != sh && c->y < bh)
 		c->y = bh;
 
@@ -285,8 +285,8 @@ resize(Client *c, Bool sizehints, Corner sticky) {
 		c->y = bottom - c->h;
 
 	/* offscreen appearance fixes */
-	if(c->x + c->w < 0)
-		c->x = 0;
+	if(c->x + c->w < sx)
+		c->x = sx;
 	if(c->y + c->h < bh)
 		c->y = bh;
 	if(c->x > sw)
ision' href='/akkartik/mu/blame/display.mu?h=hlt&id=45c08fea47de1a23ce98f4fc7a1c5c3bed92b5fb'>^
bc643692 ^
12d73ee8 ^
6a0f71b9 ^
0012c703 ^
6a0f71b9 ^
0012c703 ^
6a0f71b9 ^
0012c703 ^
6a0f71b9 ^
0012c703 ^
6a0f71b9 ^
290fe117 ^
54d48b25 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24