summaryrefslogtreecommitdiffstats
path: root/x11vnc/selection.c
diff options
context:
space:
mode:
authorrunge <runge>2006-07-18 00:40:00 +0000
committerrunge <runge>2006-07-18 00:40:00 +0000
commit901729e3e04d13d0d7e701c6a6c014f4adc42ce6 (patch)
tree5ccae39a0740461dde0b2875d3b1e8398b6e1357 /x11vnc/selection.c
parent6e2fa292297af38a12ab6a0bac1a2873b2fb289c (diff)
downloadlibtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.tar.gz
libtdevnc-901729e3e04d13d0d7e701c6a6c014f4adc42ce6.zip
x11vnc: enable --without-x builds for -rawfb only binaries.
Diffstat (limited to 'x11vnc/selection.c')
-rw-r--r--x11vnc/selection.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11vnc/selection.c b/x11vnc/selection.c
index cb2cce7..d4146e9 100644
--- a/x11vnc/selection.c
+++ b/x11vnc/selection.c
@@ -61,6 +61,9 @@ void selection_request(XEvent *ev, char *type) {
unsigned long XA_LENGTH;
#endif
RAWFB_RET_VOID
+#if NO_X11
+ return;
+#else
#ifndef XA_LENGTH
XA_LENGTH = XInternAtom(dpy, "LENGTH", True);
#endif
@@ -134,6 +137,7 @@ void selection_request(XEvent *ev, char *type) {
trapped_xerror = 0;
XFlush_wr(dpy);
+#endif /* NO_X11 */
}
int check_sel_direction(char *dir, char *label, char *sel, int len) {
@@ -185,6 +189,9 @@ void cutbuffer_send(void) {
slen = 0;
RAWFB_RET_VOID
+#if NO_X11
+ return;
+#else
/* read the property value into cutbuffer_str: */
do {
@@ -230,6 +237,7 @@ void cutbuffer_send(void) {
if (check_sel_direction("send", "cutbuffer_send", cutbuffer_str, len)) {
rfbSendServerCutText(screen, cutbuffer_str, len);
}
+#endif /* NO_X11 */
}
/*
@@ -255,6 +263,9 @@ void selection_send(XEvent *ev) {
char *selection_str;
RAWFB_RET_VOID
+#if NO_X11
+ return;
+#else
/*
* remember info about our last value of PRIMARY (or CUT_BUFFER0)
* so we can check for any changes below.
@@ -368,6 +379,7 @@ if (debug_sel) fprintf(stderr, "selection_send: data: '%s' dlen: %d nitems: %lu
if (check_sel_direction("send", "selection_send", selection_str, len)) {
rfbSendServerCutText(screen, selection_str, len);
}
+#endif /* NO_X11 */
}