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

View File

@ -432,8 +432,9 @@ setup(void) {
swa.border_pixel = 0; swa.border_pixel = 0;
swa.colormap = cmap; swa.colormap = cmap;
swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask; swa.event_mask = ExposureMask | KeyPressMask | VisibilityChangeMask;
win = XCreateWindow(dpy, parentwin, x, y, mw, mh, borderwidth, win = XCreateWindow(dpy, parentwin, x, y,
depth, CopyFromParent, visual, mw - (borderwidth * 2), mh - (borderwidth * 2),
borderwidth, depth, CopyFromParent, visual,
CWOverrideRedirect | CWBackPixel | CWBorderPixel | CWColormap | CWEventMask, &swa); CWOverrideRedirect | CWBackPixel | CWBorderPixel | CWColormap | CWEventMask, &swa);
if (borderwidth) if (borderwidth)
XSetWindowBorder(dpy, win, scheme[SchemeSelect][ColBg].pixel); XSetWindowBorder(dpy, win, scheme[SchemeSelect][ColBg].pixel);