]> git.armaanb.net Git - dmenu.git/commitdiff
set window background_pixel
authorConnor Lane Smith <cls@lubutu.com>
Wed, 23 Nov 2011 13:40:21 +0000 (14:40 +0100)
committerConnor Lane Smith <cls@lubutu.com>
Wed, 23 Nov 2011 13:40:21 +0000 (14:40 +0100)
dmenu.c

diff --git a/dmenu.c b/dmenu.c
index a5af9d5b87dfecb2aebb4d7ffbf92a9de4c55392..019fa3e29ad30fcca746e09586b31deefff7b27f 100644 (file)
--- 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);