summaryrefslogtreecommitdiffstats
path: root/x11vnc/selection.c
diff options
context:
space:
mode:
authorrunge <runge>2006-12-29 07:21:37 +0000
committerrunge <runge>2006-12-29 07:21:37 +0000
commit833f06025fbd2fa8d4d83ccf8ab068c8060663de (patch)
tree1b20fdc2575d12b66e28d6e608dd54b3cacb2766 /x11vnc/selection.c
parente4a397ed13a2c6eb9d2da7870165e7ecdc67f461 (diff)
downloadlibvncserver-833f06025fbd2fa8d4d83ccf8ab068c8060663de.zip
libvncserver-833f06025fbd2fa8d4d83ccf8ab068c8060663de.tar.gz
x11vnc -ncache on by default for beta test. fix -nofb & -rawfb modes.
Diffstat (limited to 'x11vnc/selection.c')
-rw-r--r--x11vnc/selection.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/x11vnc/selection.c b/x11vnc/selection.c
index 0630aea..7428ead 100644
--- a/x11vnc/selection.c
+++ b/x11vnc/selection.c
@@ -62,14 +62,14 @@ void selection_request(XEvent *ev, char *type) {
char *str;
unsigned int length;
unsigned char *data;
-#ifndef XA_LENGTH
+# ifndef XA_LENGTH
unsigned long XA_LENGTH;
-#endif
+# endif
RAWFB_RET_VOID
-#ifndef XA_LENGTH
+# ifndef XA_LENGTH
XA_LENGTH = XInternAtom(dpy, "LENGTH", True);
-#endif
+# endif
req_event = &(ev->xselectionrequest);
notify_event.type = SelectionNotify;
@@ -257,6 +257,7 @@ void cutbuffer_send(void) {
* Also: XFIXES has XFixesSelectSelectionInput().
*/
#define CHKSZ 32
+
void selection_send(XEvent *ev) {
#if NO_X11
RAWFB_RET_VOID
OpenPOWER on IntegriCloud