summaryrefslogtreecommitdiffstats
path: root/x11vnc/scan.c
diff options
context:
space:
mode:
authorrunge <runge>2007-01-31 15:41:42 +0000
committerrunge <runge>2007-01-31 15:41:42 +0000
commit1b9082bc8739e5ab186092ca1dcff1736eb91c0e (patch)
tree9d2a267bcbba93aed87634838c9ac10f36363210 /x11vnc/scan.c
parent1f8da9bde3b7de272228872410143f076662ae13 (diff)
downloadlibtdevnc-1b9082bc8739e5ab186092ca1dcff1736eb91c0e.tar.gz
libtdevnc-1b9082bc8739e5ab186092ca1dcff1736eb91c0e.zip
x11vnc: -reflect, -N. -ncache, FINDDISPLAY, FINDCREATEDISPLAY, improvements. MODTWEAK_LOWEST workaround.
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r--x11vnc/scan.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/x11vnc/scan.c b/x11vnc/scan.c
index 62bfe13..9c3c0a1 100644
--- a/x11vnc/scan.c
+++ b/x11vnc/scan.c
@@ -3065,11 +3065,15 @@ int scan_for_updates(int count_only) {
/* first pass collecting DAMAGE events: */
#ifdef MACOSX
if (macosx_console) {
- collect_macosx_damage(-1, -1, -1, -1, 0);
+ collect_non_X_xdamage(-1, -1, -1, -1, 0);
} else
#endif
{
- collect_xdamage(scan_count, 0);
+ if (rawfb_vnc_reflect) {
+ collect_non_X_xdamage(-1, -1, -1, -1, 0);
+ } else {
+ collect_xdamage(scan_count, 0);
+ }
}
}
}
@@ -3100,7 +3104,11 @@ int scan_for_updates(int count_only) {
} else
#endif
{
- collect_xdamage(scan_count, 1);
+ if (rawfb_vnc_reflect) {
+ ;
+ } else {
+ collect_xdamage(scan_count, 1);
+ }
}
}
if (count_only) {