add: WMListItem *item; TextureListItem *titem;  item = WMGetListItem(panel->texLs, panel->textureIndex[6]); titem = (TextureListItem*)item->clientData;
context: updatePreviewBox(_Panel *panel, int elements){    WMScreen *scr = WMWidgetScreen(panel->win);    Display *dpy = WMScreenDisplay(scr); /*   RContext *rc = WMScreenRContext(scr);*/    int refresh = 0;    Pixmap pix;    GC gc;    WMListItem *item;    TextureListItem *titem;    int colorUpdate = 0;    gc = XCreateGC(dpy, WMWidgetXID(panel->win), 0, NULL);    if (panel->preview == None) {	WMColor *color;	panel->preview = XCreatePixmap(dpy, WMWidgetXID(panel->win),				       240-4, 215-4, WMScreenDepth(scr));	color = WMGrayColor(scr);	XFillRectangle(dpy, panel->preview, WMColorGC(color),		       0, 0, 240-4, 215-4);	WMReleaseColor(color);	refresh = -1;    }    if (elements & (1<<PFOCUSED)) {	renderPreview(panel, gc, PFOCUSED, RBEV_RAISED2);	colorUpdate |= FTITLE_COL;    }    if (elements & (1<<PUNFOCUSED)) {	renderPreview(panel, gc, PUNFOCUSED, RBEV_RAISED2);	colorUpdate |= UTITLE_COL;    }    if (elements & (1<<POWNER)) {	renderPreview(panel, gc, POWNER, RBEV_RAISED2);	colorUpdate |= OTITLE_COL;    }    if (elements & (1<<PRESIZEBAR)) {	renderPreview(panel, gc, PRESIZEBAR, RESIZEBAR_BEVEL);    }    if (elements & (1<<PMTITLE)) {	renderPreview(panel, gc, PMTITLE, RBEV_RAISED2);	colorUpdate |= MTITLE_COL;    }    if (elements & (1<<PMITEM)) {	item = WMGetListItem(panel->texLs, panel->textureIndex[5]);	titem = (TextureListItem*)item->clientData;	pix = renderMenu(panel, titem->prop,			 previewPositions[PMITEM].size.width, 			 previewPositions[PMITEM].size.height/4);	XCopyArea(dpy, pix, panel->preview, gc, 0, 0,		  previewPositions[PMITEM].size.width, 		  previewPositions[PMITEM].size.height,		  previewPositions[PMITEM].pos.x,		  previewPositions[PMITEM].pos.y);	XFreePixmap(dpy, pix);	colorUpdate |= MITEM_COL|MDISAB_COL|MHIGH_COL|MHIGHT_COL;    }    if (elements & (1<<PMITEM|1<<PMTITLE)) {	XDrawLine(dpy, panel->preview, gc, 29, 120, 29, 120+20*4+20);	XDrawLine(dpy, panel->preview, gc, 29, 119, 119, 119);    }    if (elements & (1<<PICON)) {	renderPreview(panel, gc, PICON,		      titem->ispixmap ? 0 : RBEV_RAISED3);	colorUpdate |= ICONT_COL|ICONB_COL|CLIP_COL|CCLIP_COL;    }    if (refresh < 0) {	WMPixmap *p;	p = WMCreatePixmapFromXPixmaps(scr, panel->preview, None,				       240-4, 215-4, WMScreenDepth(scr));	WMSetLabelImage(panel->prevL, p);	WMReleasePixmap(p);	if (colorUpdate)	    updateColorPreviewBox(panel, colorUpdate);    } else {	if (colorUpdate)	    updateColorPreviewBox(panel, colorUpdate);	else	    WMRedisplayWidget(panel->prevL);    }    XFreeGC(dpy, gc);}