diff options
Diffstat (limited to 'x11vnc/selection.c')
-rw-r--r-- | x11vnc/selection.c | 8 |
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; |