A couple of people recently have wanted to set background
colours different to any colour in the main palette of 16.
This patch allows that, and is generally sensible.
diff -r 33577294b822 st.c
--- a/st.c Thu Sep 22 10:04:58 2011 +0200
+++ b/st.c Wed Oct 05 13:57:52 2011 +0100
@@ -1541,7 +1541,7 @@
XColor color;
unsigned long white = WhitePixel(xw.dpy, xw.scr);
- for(i = 0; i < 16; i++) {
+ for(i = 0; i < LEN(colorname); i++) {
if(!XAllocNamedColor(xw.dpy, xw.cmap, colorname[i], &color, &color)) {
dc.col[i] = white;
fprintf(stderr, "Could not allocate color '%s'\n", colorname[i]);