about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--client.c16
-rw-r--r--event.c2
2 files changed, 7 insertions, 11 deletions
diff --git a/client.c b/client.c
index 510ec59..5309d0e 100644
--- a/client.c
+++ b/client.c
@@ -89,16 +89,12 @@ focus(Client *c) {
 		XSetWindowBorder(dpy, old->win, dc.norm[ColBorder]);
 	}
 	if(c) {
-		if(issel) {
-			detachstack(c);
-			c->snext = stack;
-			stack = c;
-			grabbuttons(c, True);
-			XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
-			XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
-		}
-		else
-			XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]);
+		detachstack(c);
+		c->snext = stack;
+		stack = c;
+		grabbuttons(c, True);
+		XSetWindowBorder(dpy, c->win, dc.sel[ColBorder]);
+		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
 	}
 	else if(issel)
 		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
diff --git a/event.c b/event.c
index 2e021d5..c913320 100644
--- a/event.c
+++ b/event.c
@@ -270,7 +270,7 @@ leavenotify(XEvent *e) {
 
 	if((ev->window == root) && !ev->same_screen) {
 		issel = False;
-		focus(sel);
+		focus(NULL);
 	}
 }
 
ckless.org> 2007-02-21 13:31:04 +0100 reverting to bg 555' href='/acidbong/suckless/dwm/commit/config.arg.h?h=5.6.1&id=84ae6e12ebbb1a42a89c3f517952601985ab55d0'>84ae6e1 ^
58beead ^
a73a882 ^
12280f0 ^
3794c62 ^

f196b71 ^

338c083 ^
f196b71 ^




3794c62 ^
f196b71 ^
3794c62 ^



338c083 ^
3794c62 ^
cac492b ^
f196b71 ^
cac492b ^
3794c62 ^
f196b71 ^

b38905b ^
a73a882 ^
3059c9c ^
3171371 ^
0ea0343 ^
e701394 ^
3171371 ^
0ea0343 ^
2c477cf ^
2aef8b9 ^
ef9b3e1 ^

2122e39 ^

27b0595 ^

2c477cf ^

338c083 ^
2c477cf ^







































a73a882 ^
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98