diff options
author | runge <[email protected]> | 2009-05-21 10:57:03 -0400 |
---|---|---|
committer | runge <[email protected]> | 2009-05-21 10:57:03 -0400 |
commit | 94d058b35f075cec2d6e8b6e37ee1a94086ea3f8 (patch) | |
tree | 6cec0620ab70b5db6b33645dbcac1071f3c7a556 /x11vnc/scan.c | |
parent | 804335f9d296440bb708ca844f5d89b58b50b0c6 (diff) | |
download | libtdevnc-94d058b35f075cec2d6e8b6e37ee1a94086ea3f8.tar.gz libtdevnc-94d058b35f075cec2d6e8b6e37ee1a94086ea3f8.zip |
Thread safety. Fix -clip -in -rawfb. Try to avoid Xorg stuck
key bug.
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r-- | x11vnc/scan.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/x11vnc/scan.c b/x11vnc/scan.c index 9f8cee2..ab474ed 100644 --- a/x11vnc/scan.c +++ b/x11vnc/scan.c @@ -1776,6 +1776,7 @@ static int copy_tiles(int tx, int ty, int nt) { copy_image(tile_row[nt], x, y, size_x, size_y); XRANDR_CHK_TRAP_RET(-1, "copy_tile-chk"); + X_UNLOCK; if (blackouts && tile_blackout[n].cover == 1) { @@ -2806,6 +2807,7 @@ if (db && snapcnt++ < 5) rfbLog("rawfb copy_snap took: %.5f secs\n", dnow() - st } X_UNLOCK; + dt = dtime(&dt); if (first) { rfbLog("copy_snap: time for -snapfb snapshot: %.3f sec\n", dt); @@ -3474,7 +3476,7 @@ int scan_for_updates(int count_only) { last_xd_check = time(NULL); if (xd_samples > 200) { static int bad = 0; - if (xd_misses > (5 * xd_samples) / 100) { + if (xd_misses > (20 * xd_samples) / 100) { rfbLog("XDAMAGE is not working well... misses: %d/%d\n", xd_misses, xd_samples); rfbLog("Maybe an OpenGL app like Beryl or Compiz is the problem?\n"); rfbLog("Use x11vnc -noxdamage or disable the Beryl/Compiz app.\n"); |