about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 10:49:22 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 10:49:22 +0200
commit2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a (patch)
treea4a21bf2ff4747b0b86a979ea765f769705f6968
parent375a251d16de567b6c62cce208f388cd16e0ce0f (diff)
downloaddwm-2c0d1cc87bf084ed3f1cdb4be881fb4f64f5773a.tar.gz
fixed a core dump
-rw-r--r--client.c1
-rw-r--r--tag.c6
2 files changed, 4 insertions, 3 deletions
diff --git a/client.c b/client.c
index ecfd8f0..8d5ea30 100644
--- a/client.c
+++ b/client.c
@@ -52,7 +52,6 @@ focus(Client *c)
 	if (!issel)
 		return;
 	Client *old = sel;
-	XEvent ev;
 
 	sel = c;
 	if(old && old != c)
diff --git a/tag.c b/tag.c
index 01979d5..c4d3b34 100644
--- a/tag.c
+++ b/tag.c
@@ -211,8 +211,10 @@ restack()
 			else
 				m++;
 		}
-
-	n = 2 * (f + m);
+	if(!(n = 2 * (f + m))) {
+		drawstatus();
+		return;
+	}
 	if(nwins < n) {
 		nwins = n;
 		wins = erealloc(wins, nwins * sizeof(Window));
quot;lynx", label v2_6' href='/ingrix/lynx-snapshots/commit/IBMPC-charsets.announce?id=e087f6d44e87f489fcb3056e86319ebba4218156'>e087f6d4
899516a7 ^

















e087f6d4



899516a7 ^




e087f6d4
d3f9d547 ^
e087f6d4



899516a7 ^






d3f9d547 ^
899516a7 ^
d3f9d547 ^
e087f6d4





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