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/remote.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/remote.c')
-rw-r--r-- | x11vnc/remote.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/x11vnc/remote.c b/x11vnc/remote.c index a090d49..d1ef26a 100644 --- a/x11vnc/remote.c +++ b/x11vnc/remote.c @@ -492,6 +492,9 @@ static void reset_rfbport(int old, int new) { int remote_control_access_ok(void) { struct stat sbuf; +#if NO_X11 + return 0; +#else if (client_connect_file) { if (stat(client_connect_file, &sbuf) == 0) { if (sbuf.st_mode & S_IWOTH) { @@ -614,6 +617,7 @@ int remote_control_access_ok(void) { } return 1; +#endif /* NO_X11 */ } static int hack_val = 0; @@ -3082,9 +3086,11 @@ char *process_remote_cmd(char *cmd, int stringonly) { } grab_kbd = 0; if (orig && dpy) { +#if !NO_X11 X_LOCK; XUngrabKeyboard(dpy, CurrentTime); X_UNLOCK; +#endif } rfbLog("disabled grab_kbd\n"); } else if (!strcmp(p, "grabptr")) { @@ -3102,9 +3108,11 @@ char *process_remote_cmd(char *cmd, int stringonly) { } grab_ptr = 0; if (orig && dpy) { +#if !NO_X11 X_LOCK; XUngrabPointer(dpy, CurrentTime); X_UNLOCK; +#endif } rfbLog("disabled grab_ptr\n"); |