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.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/client.c b/client.c
index 49229a7..6524c06 100644
--- a/client.c
+++ b/client.c
@@ -414,14 +414,16 @@ togglemax(Arg *arg)
 void
 unmanage(Client *c)
 {
+	Client *nc;
+
 	XGrabServer(dpy);
 	XSetErrorHandler(xerrordummy);
 
 	detach(c);
 	detachstack(c);
 	if(sel == c) {
-		for(sel = stack; sel && !isvisible(sel); sel = sel->snext);
-		focus(sel);
+		for(nc = stack; nc && !isvisible(nc); nc = nc->snext);
+		focus(nc);
 	}
 
 	XUngrabButton(dpy, AnyButton, AnyModifier, c->win);
gt; 2015-03-16 21:08:28 -0700 934 - extensible transform framework for mu's lightweight tools' href='/akkartik/mu/commit/cpp/023transform?h=hlt&id=37e4573b9382707a0c345246d7507dc269bd0df3'>37e4573b ^
ac0e9db5 ^
363be37f ^
37e4573b ^


363be37f ^
37e4573b ^


3ba63579 ^
0d9d2753 ^
3ba63579 ^


363be37f ^
3ba63579 ^

ac0e9db5 ^
05d17773 ^
ac0e9db5 ^
05d17773 ^
3ba63579 ^
ac0e9db5 ^
05d17773 ^
3ba63579 ^





9cc16d04 ^
7f73795c ^
0f125d5f ^

37e4573b ^
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