diff options
author | runge <runge> | 2007-09-05 03:39:51 +0000 |
---|---|---|
committer | runge <runge> | 2007-09-05 03:39:51 +0000 |
commit | 6a6d26a74701179672d59bfd153cc1a2e92e96bd (patch) | |
tree | 47537dd9d54f9c9e95c01e066435216bbac99ceb /x11vnc/xwrappers.c | |
parent | e30552512933e6f0a07b83dd3246a97ff5281503 (diff) | |
download | libtdevnc-6a6d26a74701179672d59bfd153cc1a2e92e96bd.tar.gz libtdevnc-6a6d26a74701179672d59bfd153cc1a2e92e96bd.zip |
x11vnc: -autoport, -finddpy, -xdummy. watch xrandr events. check_redir_services() utilities for Terminal services. Improve Xdummy.
Diffstat (limited to 'x11vnc/xwrappers.c')
-rw-r--r-- | x11vnc/xwrappers.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/x11vnc/xwrappers.c b/x11vnc/xwrappers.c index 416b4ee..1ec1ff3 100644 --- a/x11vnc/xwrappers.c +++ b/x11vnc/xwrappers.c @@ -1055,8 +1055,15 @@ int xauth_raw(int on) { } return 1; } else { - if (old_xauthority) { + if (old_xauthority && strcmp(old_xauthority, "")) { set_env("XAUTHORITY", old_xauthority); + } else { + char *xauth = getenv("XAUTHORITY"); + if (xauth) { + *(xauth-2) = '_'; /* yow */ + } + } + if (old_xauthority) { free(old_xauthority); old_xauthority = NULL; } |