summaryrefslogtreecommitdiffstats
path: root/x11vnc/selection.c
diff options
context:
space:
mode:
authorrunge <runge>2006-02-25 05:10:37 +0000
committerrunge <runge>2006-02-25 05:10:37 +0000
commit79310af7e7a289d2baf1bdc295daefdcc76ecc0e (patch)
treeda68674a1beef5ce0ba807187657ca5fe215f68c /x11vnc/selection.c
parentb7773ea6e683e5fcfae5bf020828596c5f90b7d3 (diff)
downloadlibtdevnc-79310af7e7a289d2baf1bdc295daefdcc76ecc0e.tar.gz
libtdevnc-79310af7e7a289d2baf1bdc295daefdcc76ecc0e.zip
x11vnc: -unixpw and -stunnel. Add clipboard to input control.
Diffstat (limited to 'x11vnc/selection.c')
-rw-r--r--x11vnc/selection.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/x11vnc/selection.c b/x11vnc/selection.c
index 28b172c..8097057 100644
--- a/x11vnc/selection.c
+++ b/x11vnc/selection.c
@@ -3,6 +3,7 @@
#include "x11vnc.h"
#include "cleanup.h"
#include "connections.h"
+#include "unixpw.h"
/*
* Selection/Cutbuffer/Clipboard handlers.
@@ -184,6 +185,9 @@ void cutbuffer_send(void) {
rfbLog("cutbuffer_send: no send: uninitialized clients\n");
return; /* some clients initializing, cannot send */
}
+ if (unixpw_in_progress) {
+ return;
+ }
/* now send it to any connected VNC clients (rfbServerCutText) */
if (!screen) {
@@ -284,6 +288,10 @@ void selection_send(XEvent *ev) {
return; /* some clients initializing, cannot send */
}
+ if (unixpw_in_progress) {
+ return;
+ }
+
/* now send it to any connected VNC clients (rfbServerCutText) */
if (!screen) {
return;