diff options
author | runge <runge@karlrunge.com> | 2009-05-21 10:57:03 -0400 |
---|---|---|
committer | runge <runge@karlrunge.com> | 2009-05-21 10:57:03 -0400 |
commit | 94d058b35f075cec2d6e8b6e37ee1a94086ea3f8 (patch) | |
tree | 6cec0620ab70b5db6b33645dbcac1071f3c7a556 /x11vnc/xrecord.c | |
parent | 804335f9d296440bb708ca844f5d89b58b50b0c6 (diff) | |
download | libtdevnc-94d058b3.tar.gz libtdevnc-94d058b3.zip |
Thread safety. Fix -clip -in -rawfb. Try to avoid Xorg stuck
key bug.
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); |