Make full width dmenu respect border width

master
Hektor Misplon 2021-01-08 22:31:09 +01:00
parent e84aeb901f
commit ade1bdb3bd
1 changed files with 1 additions and 1 deletions

View File

@ -682,7 +682,7 @@ 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, border_width,
win = XCreateWindow(dpy, parentwin, x, y, mw - 2 * border_width, mh, border_width,
CopyFromParent, CopyFromParent, CopyFromParent,
CWOverrideRedirect | CWBackPixel | CWEventMask, &swa);
XSetWindowBorder(dpy, win, scheme[SchemeSel] [ColBg].pixel);