rem: RContext *rc = WMScreenRContext(scr);
context: renderMenu(_Panel *panel, WMPropList *texture, int width, int iheight){    WMScreen *scr = WMWidgetScreen(panel->parent);    Display *dpy = WMScreenDisplay(scr);    Pixmap pix, tmp;    RContext *rc = WMScreenRContext(scr);    GC gc = XCreateGC(dpy, WMWidgetXID(panel->parent), 0, NULL);    int i;    switch (panel->menuStyle) {     case MSTYLE_NORMAL:	tmp = renderTexture(scr, texture, width, iheight, NULL, RBEV_RAISED2);	pix = XCreatePixmap(dpy, tmp, width, iheight*4, WMScreenDepth(scr));	for (i = 0; i < 4; i++) {	    XCopyArea(dpy, tmp, pix, gc, 0, 0, width, iheight, 0, iheight*i);	}	XFreePixmap(dpy, tmp);	break;     case MSTYLE_SINGLE:	pix = renderTexture(scr, texture, width, iheight*4, NULL, MENU_BEVEL);	break;     case MSTYLE_FLAT:	pix = renderTexture(scr, texture, width, iheight*4, NULL, RBEV_RAISED2);	break;    }    XFreeGC(dpy, gc);    return pix;}