X-Git-Url: https://git.xinqibao.xyz/dmenu.git/blobdiff_plain/a02a1a662362a1e74f627c7f47335b5aeda79c67..56a0d1fa14de915419c037ac2604fe5c5b1fe4a3:/dmenu.c diff --git a/dmenu.c b/dmenu.c index a5af9d5..019fa3e 100644 --- a/dmenu.c +++ b/dmenu.c @@ -575,12 +575,12 @@ setup(void) { /* create menu window */ swa.override_redirect = True; - swa.background_pixmap = ParentRelative; + swa.background_pixel = normcol[ColBG]; swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask; win = XCreateWindow(dc->dpy, root, x, y, mw, mh, 0, DefaultDepth(dc->dpy, screen), CopyFromParent, DefaultVisual(dc->dpy, screen), - CWOverrideRedirect | CWBackPixmap | CWEventMask, &swa); + CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); /* open input methods */ xim = XOpenIM(dc->dpy, NULL, NULL, NULL);