summaryrefslogtreecommitdiffstats
path: root/x11vnc/scan.c
diff options
context:
space:
mode:
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) {
OpenPOWER on IntegriCloud