border patch: fix for no border on the right hand side

This commit is contained in:
bakkeby 2021-10-20 17:52:57 +02:00
parent 7fd7f72d5d
commit 6dd910f53c

View File

@ -1670,7 +1670,7 @@ setup(void)
#endif // MOUSE_SUPPORT_PATCH
;
#if BORDER_PATCH
win = XCreateWindow(dpy, parentwin, x, y, mw, mh, border_width,
win = XCreateWindow(dpy, parentwin, x, y - (topbar ? 0 : border_width * 2), mw - border_width * 2, mh, border_width,
#else
win = XCreateWindow(dpy, parentwin, x, y, mw, mh, 0,
#endif // BORDER_PATCH