summaryrefslogtreecommitdiff
path: root/xenodm
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2021-01-03 10:18:31 +0000
committerMatthieu Herrb <matthieu@herrb.eu>2021-08-30 19:51:30 +0200
commit6e48c338a054b254328bbce8dca9ad2d5ba96fd4 (patch)
treef1d1954bc2c8bfe2a275fb0776b420b003758c8a /xenodm
parent9388949d22d8e14d4ce8ec8907da8393841e4a0b (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.c2
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)