From 8f6d711d48fda66ea23067aa4f29fb28f0c1d293 Mon Sep 17 00:00:00 2001 From: mrdotx Date: Thu, 28 Apr 2022 21:40:07 +0200 Subject: [PATCH] minor fix for border width --- pinentry-dmenu.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c index 4acb4ae..e8b87e8 100644 --- a/pinentry-dmenu.c +++ b/pinentry-dmenu.c @@ -432,8 +432,9 @@ setup(void) { swa.border_pixel = 0; swa.colormap = cmap; swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask; - win = XCreateWindow(dpy, parentwin, x, y, mw, mh, borderwidth, - depth, CopyFromParent, visual, + win = XCreateWindow(dpy, parentwin, x, y, + mw - (borderwidth * 2), mh - (borderwidth * 2), + borderwidth, depth, CopyFromParent, visual, CWOverrideRedirect | CWBackPixel | CWBorderPixel | CWColormap | CWEventMask, &swa); if (borderwidth) XSetWindowBorder(dpy, win, scheme[SchemeSelect][ColBg].pixel);