This commit is contained in:
CoolnsX
2021-07-09 20:10:10 +05:30
parent d0c50cfa8a
commit 980bf3527f
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View File

@@ -648,7 +648,7 @@ setup(void)
if (INTERSECT(x, y, 1, 1, info[i]))
break;
mw = MIN(MAX(max_textw() + promptw, 100), info[i].width);
mw = MIN(MAX(max_textw() + promptw, 300), 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);
@@ -658,7 +658,7 @@ setup(void)
if (!XGetWindowAttributes(dpy, parentwin, &wa))
die("could not get embedding window attributes: 0x%lx",
parentwin);
mw = MIN(MAX(max_textw() + promptw, 100), wa.width);
mw = MIN(MAX(max_textw() + promptw, 300), wa.width);
x = (wa.width - mw) / 2;
y = (wa.height - mh) / 2;
}

Binary file not shown.