aboutsummaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorAlexander Graf <agraf@suse.de>2017-07-12 14:43:45 +0200
committerMichael Roth <mdroth@linux.vnet.ibm.com>2017-08-31 11:51:17 -0500
commit503518416597cff41d4439555e5fceecdcc43400 (patch)
tree59afa0ee4c8e1c86acae1793ec171153e460b76c /ui
parent20920f4db6dee3be9d875cc9e006e42ee0eff3d0 (diff)
vnc: Set default kbd delay to 10ms
The current VNC default keyboard delay is 1ms. With that we're constantly typing faster than the guest receives keyboard events from an XHCI attached USB HID device. The default keyboard delay time in the input layer however is 10ms. I don't know how that number came to be, but empirical tests on some OpenQA driven ARM systems show that 10ms really is a reasonable default number for the delay. This patch moves the VNC delay also to 10ms. That way our default is much safer (good!) and also consistent with the input layer default (also good!). Signed-off-by: Alexander Graf <agraf@suse.de> Reviewed-by: Daniel P. Berrange <berrange@redhat.com> Message-id: 1499863425-103133-1-git-send-email-agraf@suse.de Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> (cherry picked from commit d3b0db6dfea6b3a9ee0d96aceb796bdcafa84314) Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
Diffstat (limited to 'ui')
-rw-r--r--ui/vnc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/vnc.c b/ui/vnc.c
index 349cfc9d86..b0314441c4 100644
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -3811,7 +3811,7 @@ void vnc_display_open(const char *id, Error **errp)
}
lock_key_sync = qemu_opt_get_bool(opts, "lock-key-sync", true);
- key_delay_ms = qemu_opt_get_number(opts, "key-delay-ms", 1);
+ key_delay_ms = qemu_opt_get_number(opts, "key-delay-ms", 10);
sasl = qemu_opt_get_bool(opts, "sasl", false);
#ifndef CONFIG_VNC_SASL
if (sasl) {