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.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/client.c b/client.c
index 02aff83..dff398a 100644
--- a/client.c
+++ b/client.c
@@ -203,11 +203,11 @@ manage(Window w, XWindowAttributes *wa)
 	c->border = 0;
 	setsize(c);
 
-	if(c->x + c->w > sw)
+	if(c->x + c->w + 2 > sw)
 		c->x = sw - c->w - 2;
 	if(c->x < 0)
 		c->x = 0;
-	if(c->y + c->h > sh)
+	if(c->y + c->h + 2 > sh)
 		c->y = sh - c->h - 2;
 	if(c->h != sh && c->y < bh)
 		c->y = bh;
@@ -293,10 +293,6 @@ resize(Client *c, Bool sizehints, Corner sticky)
 		if(c->maxh && c->h > c->maxh)
 			c->h = c->maxh;
 	}
-	if(c->x > sw) /* might happen on restart */
-		c->x = sw - c->w;
-	if(c->y > sh)
-		c->y = sh - c->h;
 	if(sticky == TopRight || sticky == BotRight)
 		c->x = right - c->w;
 	if(sticky == BotLeft || sticky == BotRight)
1 18:47:06 +0200 reverted a part of 45cf5174. Allow "source ranger ranger" again' href='/akspecs/ranger/commit/ranger.py?h=v1.7.0&id=8fa8705476d5023083bc27a3fddaee8402ac94e5'>8fa87054 ^
a66c4a26 ^
8fa87054 ^
83868c7a ^
8fa87054 ^


a66c4a26 ^

f027adc0 ^
5c210a96 ^

3de15ddd ^

fb275079 ^

5c210a96 ^
3d566884 ^
e30d16cb ^
621a1a39 ^
9bc5d95c ^
c44b726e ^
465bff73 ^




f8e96a97 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51