Received: from eggs.gnu.org ([2001:4830:134:3::10]:47855) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRYdP-0004Ak-9r for qemu-devel@nongnu.org; Tue, 09 Sep 2014 23:31:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRYdJ-0000o5-6q for qemu-devel@nongnu.org; Tue, 09 Sep 2014 23:31:55 -0400 Received: from soto.provo.novell.com ([137.65.250.214]:46550) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRYdJ-0000nZ-0Q for qemu-devel@nongnu.org; Tue, 09 Sep 2014 23:31:49 -0400 Message-Id: <5410369B020000660005F9FC@soto.provo.novell.com> Date: Tue, 09 Sep 2014 21:31:39 -0600 From: "Chun Yan Liu" References: <1409886863-6124-1-git-send-email-cyliu@suse.com> <540EE5CD020000660005EE1D@soto.provo.novell.com><540EE5CD020000660005EE1D@soto.provo.novell.com> (Chun Yan Liu's message of "Mon, 08 Sep 2014 21:34:37 -0600") <87tx4girg6.fsf@blackfin.pond.sub.org> In-Reply-To: <87tx4girg6.fsf@blackfin.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: Re: [Qemu-devel] [PATCH] vnc: add additional key up event before repeated key down List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: xen-devel@lists.xen.org, qemu-devel@nongnu.org, stefano.stabellini@eu.citrix.com >>> On 9/10/2014 at 02:23 AM, in message <87tx4girg6.fsf@blackfin.pond.sub.= org>, Markus Armbruster wrote:=20 > "Chun Yan Liu" writes:=20 > =20 >>>>> On 9/6/2014 at 05:23 AM, in message=20 > > , = Stefano=20 > > Stabellini wrote: =20 > >> On Fri, 5 Sep 2014, Chunyan Liu wrote: =20 > >> > Using xen tools 'xl vncviewer' with tigervnc (default on SLE-12), = =20 > >> > found that: the display of the guest is unexpected while keep =20 > >> > pressing a key. We expect the same character multiple times, but = =20 > >> > it prints only one time. This happens on a PV guest in text mode. = =20 > >> > =20 > >> > After debugging, found that tigervnc sends repeated key down events = =20 > >> > in this case, to differentiate from user pressing the same key many = =20 > >> > times. Vnc server only prints the character when it finally = receives =20 > >> > key up event. =20 > >> =20 > >> Is this actually how a vnc client should behave? =20 > >> How do the vnc client and server from realvnc behave in this regard = =20 > >> (they are the reference implementation)? =20 > >=20 > > VNC protocol doesn't specify how to handle key repetition. Tightvnc=20 > > sends key-down&key-up repeatedly, but some example like RealVNC for=20 > > Windows does the same thing - it sends only repeated key-down.=20 > >=20 > > Generally the VNC keyboard handling gives lot of space for interpretati= on=20 > > and so the implementations differ.=20 > =20 > If implementations differ, and QEMU already behaves like some of = them,=20 > then why change it? To change qemu side because we could not expect each VNC client behaves the same when holding key down, some sending key-down, key-up, key-down, key-up; but some sending key-down, key-down, key-down .... Without change, client only sending key-down, key-up, key-down,key-up ... can get correct display. > What exactly gets fixed and what gets broken by the=20 > proposed change? Holding the key down, only one character is printed, but repeated = characters are expected. Happens on some vnc client. Either vnc client or vnc server should change some to match. =20 > =20 > [...]=20 > =20 > =20