Titlebar/Stipple: Add option stipple_{normal, focus} to choose stipple color.

This commit is contained in:
Martin Duquesnoy
2009-04-21 16:58:01 +02:00
parent 2b406a54c6
commit 5be5b19266
9 changed files with 40 additions and 23 deletions

View File

@@ -52,13 +52,14 @@ emalloc(uint element, uint size)
* \param color Color string
* \return Color pixel
*/
ulong
long
getcolor(char *color)
{
XColor xcolor;
if(!XAllocNamedColor(dpy, DefaultColormap(dpy, SCREEN), color, &xcolor, &xcolor))
fprintf(stderr,"WMFS Error: cannot allocate color \"%s\"\n", color);
return xcolor.pixel;
}