minor fix for border width
This commit is contained in:
parent
58f4749742
commit
8f6d711d48
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user