X-Git-Url: https://git.danieliu.xyz/?p=dmenu.git;a=blobdiff_plain;f=dmenu.c;fp=dmenu.c;h=3f8f689cc07abea02ae4629332445c41cd50c792;hp=8862150c9e53d54ce641cd389bd7e23a5c454f44;hb=e900a283a94108a153e3136f50e2e838a99b900f;hpb=66a927595a8c6d4b2739249a4c75568c6a1c59da diff --git a/dmenu.c b/dmenu.c index 8862150..3f8f689 100644 --- a/dmenu.c +++ b/dmenu.c @@ -692,9 +692,10 @@ setup(void) swa.override_redirect = True; swa.background_pixel = scheme[SchemeNorm][ColBg].pixel; swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask; - win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0, + win = XCreateWindow(dpy, parentwin, x, y, mw, mh, border_width, CopyFromParent, CopyFromParent, CopyFromParent, CWOverrideRedirect | CWBackPixel | CWEventMask, &swa); ++ XSetWindowBorder(dpy, win, scheme[SchemeSel][ColBg].pixel); XSetClassHint(dpy, win, &ch);