diff options
author | runge <runge> | 2006-07-18 00:40:00 +0000 |
---|---|---|
committer | runge <runge> | 2006-07-18 00:40:00 +0000 |
commit | 901729e3e04d13d0d7e701c6a6c014f4adc42ce6 (patch) | |
tree | 5ccae39a0740461dde0b2875d3b1e8398b6e1357 /x11vnc/connections.c | |
parent | 6e2fa292297af38a12ab6a0bac1a2873b2fb289c (diff) | |
download | libtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.tar.gz libtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.zip |
x11vnc: enable --without-x builds for -rawfb only binaries.
Diffstat (limited to 'x11vnc/connections.c')
-rw-r--r-- | x11vnc/connections.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/x11vnc/connections.c b/x11vnc/connections.c index ac9d40c..159c884 100644 --- a/x11vnc/connections.c +++ b/x11vnc/connections.c @@ -911,6 +911,10 @@ static unsigned char t2x2_bits[] = { KeyCode key_o; RAWFB_RET(0) +#if NO_X11 + nox11_exit(1); + return 0; +#else if (! accept) { sprintf(str_y, "OK"); @@ -1168,6 +1172,7 @@ static unsigned char t2x2_bits[] = { X_UNLOCK; return ret; +#endif /* NO_X11 */ } /* @@ -1659,14 +1664,18 @@ void reverse_connect(char *str) { */ void set_vnc_connect_prop(char *str) { RAWFB_RET_VOID +#if !NO_X11 XChangeProperty(dpy, rootwin, vnc_connect_prop, XA_STRING, 8, PropModeReplace, (unsigned char *)str, strlen(str)); +#endif /* NO_X11 */ } void set_x11vnc_remote_prop(char *str) { RAWFB_RET_VOID +#if !NO_X11 XChangeProperty(dpy, rootwin, x11vnc_remote_prop, XA_STRING, 8, PropModeReplace, (unsigned char *)str, strlen(str)); +#endif /* NO_X11 */ } void read_vnc_connect_prop(int nomsg) { @@ -1684,6 +1693,9 @@ void read_vnc_connect_prop(int nomsg) { return; } RAWFB_RET_VOID +#if NO_X11 + return; +#else /* read the property value into vnc_connect_str: */ do { @@ -1713,6 +1725,7 @@ void read_vnc_connect_prop(int nomsg) { } else { rfbLog("read VNC_CONNECT: %s\n", vnc_connect_str); } +#endif /* NO_X11 */ } void read_x11vnc_remote_prop(int nomsg) { @@ -1730,6 +1743,9 @@ void read_x11vnc_remote_prop(int nomsg) { return; } RAWFB_RET_VOID +#if NO_X11 + return; +#else /* read the property value into x11vnc_remote_str: */ do { @@ -1777,6 +1793,7 @@ void read_x11vnc_remote_prop(int nomsg) { } else { rfbLog("read X11VNC_REMOTE: %s\n", x11vnc_remote_str); } +#endif /* NO_X11 */ } /* @@ -2176,6 +2193,9 @@ void send_client_info(char *str) { void adjust_grabs(int grab, int quiet) { RAWFB_RET_VOID +#if NO_X11 + return; +#else /* n.b. caller decides to X_LOCK or not. */ if (grab) { if (grab_kbd) { @@ -2206,6 +2226,7 @@ void adjust_grabs(int grab, int quiet) { XUngrabPointer(dpy, CurrentTime); } } +#endif /* NO_X11 */ } void check_new_clients(void) { |