From 79310af7e7a289d2baf1bdc295daefdcc76ecc0e Mon Sep 17 00:00:00 2001 From: runge Date: Sat, 25 Feb 2006 05:10:37 +0000 Subject: x11vnc: -unixpw and -stunnel. Add clipboard to input control. --- x11vnc/scan.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'x11vnc/scan.c') diff --git a/x11vnc/scan.c b/x11vnc/scan.c index fd408ce..6a50748 100644 --- a/x11vnc/scan.c +++ b/x11vnc/scan.c @@ -10,6 +10,7 @@ #include "screen.h" #include "pointer.h" #include "cleanup.h" +#include "unixpw.h" /* * routines for scanning and reading the X11 display for changes, and @@ -1951,6 +1952,7 @@ int copy_screen(void) { if (! fs_factor) { return 0; } + if (unixpw_in_progress) return 0; block_size = (dpy_x * (dpy_y/fs_factor) * pixelsize); @@ -2398,6 +2400,8 @@ int scan_for_updates(int count_only) { double frac3 = 0.02; /* do scan_display() again after copy_tiles() */ static double last_poll = 0.0; + if (unixpw_in_progress) return 0; + if (slow_fb > 0.0) { double now = dnow(); if (now < last_poll + slow_fb) { -- cgit v1.2.3