diff options
| author | runge <runge> | 2006-07-28 20:28:16 +0000 |
|---|---|---|
| committer | runge <runge> | 2006-07-28 20:28:16 +0000 |
| commit | 521f0338af52506e079a5075fbe9350904a67269 (patch) | |
| tree | 42e67d78a1826f9c24520d52bcde91a9aaec2a2e /x11vnc/remote.c | |
| parent | 901729e3e04d13d0d7e701c6a6c014f4adc42ce6 (diff) | |
| download | libtdevnc-521f0338.tar.gz libtdevnc-521f0338.zip | |
x11vnc: -rotate option
Diffstat (limited to 'x11vnc/remote.c')
| -rw-r--r-- | x11vnc/remote.c | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c index d1ef26a..24815a8 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -1897,6 +1897,20 @@ char *process_remote_cmd(char *cmd, int stringonly) { rfbLog("remote_cmd: XRANDR ext. not present.\n"); } + } else if (strstr(p, "rotate") == p) { + COLON_CHECK("rotate:") + if (query) { + snprintf(buf, bufn, "ans=%s%s%s", p, co, + NONUL(rotating_str)); + goto qry; + } + p += strlen("rotate:"); + if (rotating_str) free(rotating_str); + rotating_str = strdup(p); + rfbLog("remote_cmd: set rotate to \"%s\"\n", rotating_str); + + do_new_fb(0); + } else if (strstr(p, "padgeom") == p) { COLON_CHECK("padgeom:") if (query) { @@ -4035,7 +4049,7 @@ char *process_remote_cmd(char *cmd, int stringonly) { snprintf(buf, bufn, "aro=%s:%d", p, no_external_cmds); } else if (!strcmp(p, "passwdfile")) { snprintf(buf, bufn, "aro=%s:%s", p, NONUL(passwdfile)); -#ifndef REL8x +#ifndef NO_SSL_OR_UNIXPW } else if (!strcmp(p, "unixpw")) { snprintf(buf, bufn, "aro=%s:%d", p, unixpw); } else if (!strcmp(p, "unixpw_nis")) { |
