commit - 43e30577d46f24c3a430a3b949eacaed8a9a1d72
commit + 1f6422bc41370b210fced26dc753ca2ccae325a9
blob - 1fd1ba8c8910e94cdadfd8600a2349f24db97650
blob + 3318fa78c0fe36b7212ae7cbdf145d2ec1f00b2b
--- mymenu.c
+++ mymenu.c
}
void
-create_window(struct rendering *r, Window parent_window, Colormap cmap, XVisualInfo vinfo, int x, int y, int ox, int oy)
+create_window(struct rendering *r, Window parent_window, Colormap cmap, XVisualInfo vinfo, int x, int y, int ox, int oy, unsigned long background_pixel)
{
XSetWindowAttributes attr;
attr.colormap = cmap;
attr.override_redirect = 1;
attr.border_pixel = 0;
- attr.background_pixel = 0x80808080;
+ attr.background_pixel = background_pixel;
attr.event_mask = StructureNotifyMask | ExposureMask | KeyPressMask | KeymapStateMask | ButtonPress | VisibilityChangeMask;
r->w = XCreateWindow(r->d,
r.ps1len = strlen(r.ps1);
/* Create the window */
- create_window(&r, parent_window, cmap, vinfo, x, y, offset_x, offset_y);
+ create_window(&r, parent_window, cmap, vinfo, x, y, offset_x, offset_y, bgs[1]);
set_win_atoms_hints(r.d, r.w, r.width, r.height);
XMapRaised(r.d, r.w);