set window background_pixel
This commit is contained in:
parent
5162d1b37a
commit
3f9b10c86a
4
dmenu.c
4
dmenu.c
|
@ -575,12 +575,12 @@ setup(void) {
|
||||||
|
|
||||||
/* create menu window */
|
/* create menu window */
|
||||||
swa.override_redirect = True;
|
swa.override_redirect = True;
|
||||||
swa.background_pixmap = ParentRelative;
|
swa.background_pixel = normcol[ColBG];
|
||||||
swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
|
swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
|
||||||
win = XCreateWindow(dc->dpy, root, x, y, mw, mh, 0,
|
win = XCreateWindow(dc->dpy, root, x, y, mw, mh, 0,
|
||||||
DefaultDepth(dc->dpy, screen), CopyFromParent,
|
DefaultDepth(dc->dpy, screen), CopyFromParent,
|
||||||
DefaultVisual(dc->dpy, screen),
|
DefaultVisual(dc->dpy, screen),
|
||||||
CWOverrideRedirect | CWBackPixmap | CWEventMask, &swa);
|
CWOverrideRedirect | CWBackPixel | CWEventMask, &swa);
|
||||||
|
|
||||||
/* open input methods */
|
/* open input methods */
|
||||||
xim = XOpenIM(dc->dpy, NULL, NULL, NULL);
|
xim = XOpenIM(dc->dpy, NULL, NULL, NULL);
|
||||||
|
|
Loading…
Reference in New Issue