summaryrefslogtreecommitdiffstats
path: root/x11vnc/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/scan.c')
-rw-r--r--x11vnc/scan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/x11vnc/scan.c b/x11vnc/scan.c
index 2738de2..82eb8cc 100644
--- a/x11vnc/scan.c
+++ b/x11vnc/scan.c
@@ -3345,7 +3345,7 @@ int scan_for_updates(int count_only) {
scan_count %= NSCAN;
/* some periodic maintenance */
- if (subwin) {
+ if (subwin && scan_count % 4 == 0) {
set_offset(); /* follow the subwindow */
}
if (indexed_color && scan_count % 4 == 0) {