diff options
Diffstat (limited to 'x11vnc/xrecord.c')
-rw-r--r-- | x11vnc/xrecord.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/x11vnc/xrecord.c b/x11vnc/xrecord.c index b4a1970..6f84146 100644 --- a/x11vnc/xrecord.c +++ b/x11vnc/xrecord.c @@ -1577,10 +1577,20 @@ if (0) db = 1; return; } if (use_threads) { - /* XXX not working */ - use_xrecord = 0; - xrecording = 0; - return; + /* XXX not working. Still? Painting errors. */ + static int first = 1; + if (first) { + if (use_xrecord && !getenv("XRECORD_THREADS")) { + rfbLog("xrecord_watch: disabling scroll detection in -threads mode.\n"); + rfbLog("xrecord_watch: Set -env XRECORD_THREADS=1 to enable it.\n"); + use_xrecord = 0; + xrecording = 0; + } + first = 0; + } + if (!use_xrecord && !xrecording) { + return; + } } dtime0(&now); |