From 157f54202ee570b1f00e8f0e5db660750b548c3c Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 19 Jul 2017 11:20:53 +0200 Subject: [PATCH] Increase default pointer event interval Some systems (e.g. macOS) send massive amounts of pointer events, so we need to start rate limiting things to something sensible by default. One event per screen refresh should be more than sufficient. --- vncviewer/parameters.cxx | 2 +- vncviewer/vncviewer.man | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx index 9385b986..39a7f075 100644 --- a/vncviewer/parameters.cxx +++ b/vncviewer/parameters.cxx @@ -54,7 +54,7 @@ static LogWriter vlog("Parameters"); IntParameter pointerEventInterval("PointerEventInterval", "Time in milliseconds to rate-limit" - " successive pointer events", 0); + " successive pointer events", 17); BoolParameter dotWhenNoCursor("DotWhenNoCursor", "Show the dot cursor when the server sends an " "invisible cursor", false); diff --git a/vncviewer/vncviewer.man b/vncviewer/vncviewer.man index e48a0c43..22b46cd5 100644 --- a/vncviewer/vncviewer.man +++ b/vncviewer/vncviewer.man @@ -243,7 +243,7 @@ Show the dot cursor when the server sends an invisible cursor. Default is off. .TP .B \-PointerEventInterval \fItime\fP Time in milliseconds to rate-limit successive pointer events. Default is -to send events immediately. +17 ms (60 Hz). . .TP .B \-Log \fIlogname\fP:\fIdest\fP:\fIlevel\fP -- 2.39.5