border width fixed

This commit is contained in:
mrdotx 2022-05-15 18:52:08 +02:00
parent 854de3fa4e
commit f8cb897389
No known key found for this signature in database
GPG Key ID: 433F70E636E6EB87

View File

@ -396,8 +396,8 @@ setup(void) {
if (center) {
mw = MIN(centerwidth, info[i].width) - (borderwidth * 2);
mh = (mh * 2) - (borderwidth * 2);
x = info[i].x_org + ((info[i].width - mw) / 2);
y = info[i].y_org + ((info[i].height - mh) / 2);
x = info[i].x_org + ((info[i].width - mw) / 2) - borderwidth;
y = info[i].y_org + ((info[i].height - mh) / 2) - borderwidth;
} else {
x = info[i].x_org;
y = info[i].y_org + (bottom ? info[i].height - mh : 0);
@ -415,8 +415,8 @@ setup(void) {
if (center) {
mw = MIN(centerwidth, wa.width) - (borderwidth * 2);
mh = (mh * 2) - (borderwidth * 2);
x = (wa.width - mw) / 2;
y = (wa.height - mh) / 2;
x = ((wa.width - mw) / 2) - borderwidth;
y = ((wa.height - mh) / 2) - borderwidth;
} else {
x = 0;
y = bottom ? wa.height - mh : 0;