summaryrefslogtreecommitdiffstats
path: root/x11vnc/xevents.c
diff options
context:
space:
mode:
authorrunge <runge>2007-06-15 03:19:05 +0000
committerrunge <runge>2007-06-15 03:19:05 +0000
commitd3326942e2e7d1391da0975590dbd2c8668d9328 (patch)
tree34da35ee116fc657d51736ff65fc0b02b3826801 /x11vnc/xevents.c
parent171db9c542cd35b6de8ad88cefd99ea145482df1 (diff)
downloadlibtdevnc-d3326942e2e7d1391da0975590dbd2c8668d9328.tar.gz
libtdevnc-d3326942e2e7d1391da0975590dbd2c8668d9328.zip
x11vnc: fix build error if libssl is missing or --without-ssl supplied.
Diffstat (limited to 'x11vnc/xevents.c')
-rw-r--r--x11vnc/xevents.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/x11vnc/xevents.c b/x11vnc/xevents.c
index 5d8adc9..002dd99 100644
--- a/x11vnc/xevents.c
+++ b/x11vnc/xevents.c
@@ -1376,6 +1376,7 @@ void set_server_input(rfbClientPtr cl, int grab) {
}
#endif
}
+
void set_text_chat(rfbClientPtr cl, int len, char *txt) {
int dochat = 1;
rfbClientIteratorPtr iter;
@@ -1384,6 +1385,7 @@ void set_text_chat(rfbClientPtr cl, int len, char *txt) {
if (no_ultra_ext || ! dochat) {
return;
}
+
#if 0
rfbLog("set_text_chat: len=%d\n", len);
rfbLog("set_text_chat: len=0x%x txt='", len);
@@ -1395,6 +1397,9 @@ void set_text_chat(rfbClientPtr cl, int len, char *txt) {
rfbCloseClient(cl);
return;
}
+
+ saw_ultra_chat = 1;
+
iter = rfbGetClientIterator(screen);
while( (cl2 = rfbClientIteratorNext(iter)) ) {
unsigned int ulen = (unsigned int) len;
@@ -1440,6 +1445,9 @@ if (0) fprintf(stderr, "get_file_transfer_permitted called\n");
if (!input.files) {
return FALSE;
}
+ if (screen->permitFileTransfer) {
+ saw_ultra_file = 1;
+ }
return screen->permitFileTransfer;
}