mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-14 05:08:53 +00:00
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:
@@ -549,7 +549,7 @@ SetWindowPath(struct display *d)
|
|||||||
XFree(buf);
|
XFree(buf);
|
||||||
windowpath = getenv("WINDOWPATH");
|
windowpath = getenv("WINDOWPATH");
|
||||||
if (!windowpath) {
|
if (!windowpath) {
|
||||||
if (asprintf(&newwindowpath, "ttyC%lu", num - 1) == -1)
|
if (asprintf(&newwindowpath, "%lu", num) == -1)
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if (asprintf(&newwindowpath, "%s:%lu", windowpath, num) == -1)
|
if (asprintf(&newwindowpath, "%s:%lu", windowpath, num) == -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user