xrootconsole used XLookupColor to parse color parameters. I changed this to XParseColor, which can parse RGB-colors in addition to colorname. I made a patch and have spend hours trying to find some kind of information on how to submit it to the Gentoo Developers. Now I post it here, well knowing that I will probably be ignored or flamed for not following the right procedure. diff -u xrootconsole-0.4/util.c xrootconsole-0.4.new/util.c --- xrootconsole-0.4/util.c 2000-10-10 04:17:53.000000000 +0200 +++ xrootconsole-0.4.new/util.c 2004-02-17 23:59:45.000000000 +0100 @@ -53,16 +53,16 @@ unsigned long load_color(const char* s, Display *dpy) { - XColor ce, cs; + XColor ce; Colormap colormap = DefaultColormap(dpy, DefaultScreen(dpy)); - if (XLookupColor(dpy, colormap, s, &ce, &cs)) { + if (XParseColor(dpy, colormap, s, &ce)) { if (XAllocColor(dpy, colormap, &ce)) return ce.pixel; fprintf(stderr, "Warning: could not allocate color\n"); return WhitePixel(dpy, DefaultScreen(dpy)); } - fprintf(stderr, "Warning: could not lookup color\n"); + fprintf(stderr, "Warning: could not parse color\n"); return WhitePixel(dpy, DefaultScreen(dpy)); } Reproducible: Always Steps to Reproduce: 1.) xrootconsole -bg '#bbbbff' Actual Results: Warning: could not lookup color Expected Results: The program should parse the color. That is what my patch fixes.
Created attachment 25808 [details, diff] The same patch as described in the bugreport, only this is an attachment
in cvs.