diff options
author | runge <runge> | 2007-09-11 20:15:38 +0000 |
---|---|---|
committer | runge <runge> | 2007-09-11 20:15:38 +0000 |
commit | 115e935f72b58e72598c7fccf17364d6cd2fa5a1 (patch) | |
tree | 1ce24590ac497725cb977dfc08ee363773928e89 /x11vnc/xwrappers.c | |
parent | 6a6d26a74701179672d59bfd153cc1a2e92e96bd (diff) | |
download | libtdevnc-115e935f72b58e72598c7fccf17364d6cd2fa5a1.tar.gz libtdevnc-115e935f72b58e72598c7fccf17364d6cd2fa5a1.zip |
x11vnc: fix wireframe crash under -clip. Add -redirect for
VNC redir. -rawfb nullbig, randbig, solid, swirl, etc.
FD_XDM mode to find_display. -listdpy. Add enlightenment.
Xvnc.redirect FINDDISPLAY-vnc_redirect. -xvnc, -xvnc_redirect,
-svc_xvnc. AUTO_PORT.
Diffstat (limited to 'x11vnc/xwrappers.c')
-rw-r--r-- | x11vnc/xwrappers.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/x11vnc/xwrappers.c b/x11vnc/xwrappers.c index 1ec1ff3..022e59a 100644 --- a/x11vnc/xwrappers.c +++ b/x11vnc/xwrappers.c @@ -1055,15 +1055,15 @@ int xauth_raw(int on) { } return 1; } else { - if (old_xauthority && strcmp(old_xauthority, "")) { - set_env("XAUTHORITY", old_xauthority); - } else { - char *xauth = getenv("XAUTHORITY"); - if (xauth) { - *(xauth-2) = '_'; /* yow */ - } - } if (old_xauthority) { + if (!strcmp(old_xauthority, "")) { + char *xauth = getenv("XAUTHORITY"); + if (xauth) { + *(xauth-2) = '_'; /* yow */ + } + } else { + set_env("XAUTHORITY", old_xauthority); + } free(old_xauthority); old_xauthority = NULL; } |