minor fix for border width

This commit is contained in:
mrdotx 2022-04-28 21:40:07 +02:00
parent 58f4749742
commit 8f6d711d48
No known key found for this signature in database
GPG Key ID: 433F70E636E6EB87
1 changed files with 3 additions and 2 deletions

View File

@ -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);