rem: vmask = CWBorderPixel|CWBackPixmap|CWBackPixel|CWCursor|CWSaveUnder|CWOverrideRedirect; attribs.border_pixel = scr->black_pixel; attribs.save_under = True; attribs.override_redirect = True; attribs.cursor = wCursor[WCUR_DEFAULT]; attribs.background_pixmap = None; if (scr->widget_texture) attribs.background_pixel = scr->widget_texture->normal.pixel; else attribs.background_pixel = scr->light_pixel; vmask |= CWColormap; attribs.colormap = scr->w_colormap;  wGetGeometryWindowSize(scr, &scr->geometry_display_width, &scr->geometry_display_height); scr->geometry_display = XCreateWindow(dpy, scr->root_win, 1, 1, scr->geometry_display_width, scr->geometry_display_height, 1, scr->w_depth, CopyFromParent, scr->w_visual, vmask, &attribs);
context: createInternalWindows(WScreen *scr){    int vmask;    XSetWindowAttributes attribs;    /* window for displaying geometry information during resizes and moves */    vmask = CWBorderPixel|CWBackPixmap|CWBackPixel|CWCursor|CWSaveUnder|CWOverrideRedirect;    attribs.border_pixel = scr->black_pixel;    attribs.save_under = True;    attribs.override_redirect = True;        attribs.cursor = wCursor[WCUR_DEFAULT];    attribs.background_pixmap = None;    if (scr->widget_texture)	attribs.background_pixel = scr->widget_texture->normal.pixel;    else	attribs.background_pixel = scr->light_pixel;    vmask |= CWColormap;    attribs.colormap = scr->w_colormap;    wGetGeometryWindowSize(scr, &scr->geometry_display_width,			   &scr->geometry_display_height);    scr->geometry_display =      XCreateWindow(dpy, scr->root_win, 1, 1,		    scr->geometry_display_width,		    scr->geometry_display_height,		    1, scr->w_depth, CopyFromParent, scr->w_visual,		    vmask, &attribs);        /* InputOnly window to get the focus when no other window can get it */    vmask = CWEventMask|CWOverrideRedirect;    attribs.event_mask = KeyPressMask|FocusChangeMask;    attribs.override_redirect = True;    scr->no_focus_win=XCreateWindow(dpy,scr->root_win,-10, -10, 4, 4, 0, 0,				    InputOnly,CopyFromParent, vmask, &attribs);    XSelectInput(dpy, scr->no_focus_win, KeyPressMask|KeyReleaseMask);    XMapWindow(dpy, scr->no_focus_win);    XSetInputFocus(dpy, scr->no_focus_win, RevertToParent, CurrentTime);     /* shadow window for dock buttons */    vmask = CWBorderPixel|CWBackPixmap|CWBackPixel|CWCursor|CWSaveUnder|CWOverrideRedirect;    attribs.border_pixel = scr->black_pixel;    attribs.save_under = True;    attribs.override_redirect = True;    attribs.background_pixmap = None;    attribs.background_pixel = scr->white_pixel;    vmask |= CWColormap;    attribs.colormap = scr->w_colormap;    scr->dock_shadow =      XCreateWindow(dpy, scr->root_win, 0, 0, wPreferences.icon_size, 		    wPreferences.icon_size, 0, scr->w_depth, CopyFromParent, 		    scr->w_visual, vmask, &attribs);    /* workspace name balloon for clip */    vmask = CWBackPixel|CWSaveUnder|CWOverrideRedirect|CWColormap	|CWBorderPixel;    attribs.save_under = True;    attribs.override_redirect = True;    attribs.colormap = scr->w_colormap;    attribs.background_pixel = scr->icon_back_texture->normal.pixel;    attribs.border_pixel = 0; /* do not care */    scr->clip_balloon =      XCreateWindow(dpy, scr->root_win, 0, 0, 10, 10, 0, scr->w_depth,		    CopyFromParent, scr->w_visual, vmask, &attribs);        /* workspace name */    vmask = CWBackPixel|CWSaveUnder|CWOverrideRedirect|CWColormap	|CWBorderPixel;    attribs.save_under = True;    attribs.override_redirect = True;    attribs.colormap = scr->w_colormap;    attribs.background_pixel = scr->icon_back_texture->normal.pixel;    attribs.border_pixel = 0; /* do not care */    scr->workspace_name =      XCreateWindow(dpy, scr->root_win, 0, 0, 10, 10, 0, scr->w_depth,		    CopyFromParent, scr->w_visual, vmask, &attribs);        /* for our window manager info notice board */    scr->info_window =      XCreateWindow(dpy, scr->root_win, 0, 0, 10, 10, 0, CopyFromParent,		    CopyFromParent, CopyFromParent, CWOverrideRedirect,		    &attribs);    /*     * If the window is clicked without having ButtonPress selected, the     * resulting event will have event.xbutton.window == root.     */    XSelectInput(dpy, scr->clip_balloon, ButtonPressMask);}