about summary refs log tree commit diff stats
path: root/draw.c
diff options
context:
space:
mode:
Diffstat (limited to 'draw.c')
-rw-r--r--draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/draw.c b/draw.c
index 3fbac5b..362d025 100644
--- a/draw.c
+++ b/draw.c
@@ -149,7 +149,8 @@ getcolor(const char *colstr) {
 	Colormap cmap = DefaultColormap(dpy, screen);
 	XColor color;
 
-	XAllocNamedColor(dpy, cmap, colstr, &color, &color);
+	if(!XAllocNamedColor(dpy, cmap, colstr, &color, &color))
+		eprint("error, cannot allocate color '%s'\n", colstr);
 	return color.pixel;
 }
 
<nincsnevem662@gmail.com> 2021-12-17 23:20:55 +0100 Move... things' href='/ahoang/chawan/commit/src/layout/box.nim?id=f8116499bb450928ecf737fa179ec371ccbb5dae'>f8116499 ^
04e33d80 ^
ab963e4e ^
b4798a6b ^

e1194507 ^
6ff61c5a ^
444c70b6 ^
270628aa ^

a42f0b16 ^
270628aa ^
bcaaf4e6 ^
a42f0b16 ^
04403976 ^
876f5e9c ^
270628aa ^



06696ec0 ^
04403976 ^
876f5e9c ^






8efeab3d ^


270628aa ^


04403976 ^

270628aa ^
a42f0b16 ^
04403976 ^
bf3b8804 ^
270628aa ^
876f5e9c ^
270628aa ^


270628aa ^
fb017f27 ^
270628aa ^
7a2cda0e ^
06696ec0 ^
5c19adf2 ^
fb017f27 ^
04403976 ^
8efeab3d ^
b4798a6b ^
270628aa ^

444c70b6 ^
8efeab3d ^



5148f88d ^

876f5e9c ^





bf3b8804 ^
270628aa ^
5c19adf2 ^

270628aa ^
5c19adf2 ^
6ff61c5a ^
270628aa ^
270628aa ^
0c0aa01a ^
b4798a6b ^

7b06c22d ^
87a47d56 ^


270628aa ^
b4798a6b ^
7b06c22d ^
bcaaf4e6 ^
8efeab3d ^
bcaaf4e6 ^
7b06c22d ^
352c2819 ^
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
99
100
101
102
103
104
105
106
107