about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--dwm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dwm.c b/dwm.c
index dd39fe1..09f3ae1 100644
--- a/dwm.c
+++ b/dwm.c
@@ -846,12 +846,14 @@ killclient(const Arg *arg) {
 
 void
 manage(Window w, XWindowAttributes *wa) {
+	static Client cz;
 	Client *c, *t = NULL;
 	Window trans = None;
 	XWindowChanges wc;
 
-	if(!(c = calloc(1, sizeof(Client))))
-		die("fatal: could not calloc() %u bytes\n", sizeof(Client));
+	if(!(c = malloc(sizeof(Client))))
+		die("fatal: could not malloc() %u bytes\n", sizeof(Client));
+	*c = cz;
 	c->win = w;
 
 	/* geometry */
3:11 -0700 committer Drew DeVault <sir@cmpwn.com> 2019-06-29 14:24:19 -0400 Implement basic tab completion support' href='/akspecs/aerc/commit/commands/account/next.go?h=0.4.0&id=2a0961701c4cabecc53d134ed1782e5612e64580'>2a09617 ^
24daef8 ^
2a09617 ^
24daef8 ^

2a09617 ^





24daef8 ^

2a09617 ^
24daef8 ^





e780c6e ^
24daef8 ^

e780c6e ^



24daef8 ^





9e28a02 ^


e780c6e ^


24daef8 ^
455c6f0 ^
53df15a ^



9746f48 ^
24daef8 ^
53df15a ^



9746f48 ^
24daef8 ^



2a09617 ^



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