This commit is contained in:
CoolnsX
2021-11-22 23:12:33 +05:30
parent 6c33e7fbfe
commit f102e6bbd1
5 changed files with 14 additions and 8 deletions

Binary file not shown.

View File

@@ -764,7 +764,7 @@ setup(void)
if (INTERSECT(x, y, 1, 1, info[i]))
break;
mw = MIN(MAX(max_textw() + promptw, 300), info[i].width);
mw = MIN(MAX(max_textw() + promptw, 600), info[i].width);
x = info[i].x_org + ((info[i].width - mw) / 2);
y = info[i].y_org + ((info[i].height - mh) / 2);
XFree(info);
@@ -774,7 +774,7 @@ setup(void)
if (!XGetWindowAttributes(dpy, parentwin, &wa))
die("could not get embedding window attributes: 0x%lx",
parentwin);
mw = MIN(MAX(max_textw() + promptw, 300), wa.width);
mw = MIN(MAX(max_textw() + promptw, 600), wa.width);
x = (wa.width - mw) / 2;
y = (wa.height - mh) / 2;
}

Binary file not shown.