diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2021-01-03 10:18:31 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@herrb.eu> | 2021-08-30 19:51:30 +0200 |
commit | 6e48c338a054b254328bbce8dca9ad2d5ba96fd4 (patch) | |
tree | f1d1954bc2c8bfe2a275fb0776b420b003758c8a /xenodm | |
parent | 9388949d22d8e14d4ce8ec8907da8393841e4a0b (diff) |
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).
Diffstat (limited to 'xenodm')
-rw-r--r-- | xenodm/dm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xenodm/dm.c b/xenodm/dm.c index 5369803..1b0353f 100644 --- a/xenodm/dm.c +++ b/xenodm/dm.c @@ -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) |