Fix the WINDOWPATH environment variable setting.

Setting it to a device name was a mistake as this is not the semantic
expected by the applications that use it (screen readers).
This commit is contained in:
matthieu
2021-01-03 10:18:30 +00:00
parent ba0413b196
commit 24e60b4d18

View File

@@ -549,7 +549,7 @@ SetWindowPath(struct display *d)
XFree(buf);
windowpath = getenv("WINDOWPATH");
if (!windowpath) {
if (asprintf(&newwindowpath, "ttyC%lu", num - 1) == -1)
if (asprintf(&newwindowpath, "%lu", num) == -1)
return;
} else {
if (asprintf(&newwindowpath, "%s:%lu", windowpath, num) == -1)