Received: from eggs.gnu.org ([2001:4830:134:3::10]:60545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRQ4X-0004fV-Sj for qemu-devel@nongnu.org; Tue, 09 Sep 2014 14:23:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XRQ4T-0001B8-Oa for qemu-devel@nongnu.org; Tue, 09 Sep 2014 14:23:21 -0400 Received: from mx1.redhat.com ([209.132.183.28]:35669) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRQ4T-0001B0-Fw for qemu-devel@nongnu.org; Tue, 09 Sep 2014 14:23:17 -0400 From: Markus Armbruster References: <1409886863-6124-1-git-send-email-cyliu@suse.com> <540EE5CD020000660005EE1D@soto.provo.novell.com> Date: Tue, 09 Sep 2014 20:23:05 +0200 In-Reply-To: <540EE5CD020000660005EE1D@soto.provo.novell.com> (Chun Yan Liu's message of "Mon, 08 Sep 2014 21:34:37 -0600") Message-ID: <87tx4girg6.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain 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: Chun Yan Liu Cc: xen-devel@lists.xen.org, qemu-devel@nongnu.org, stefano.stabellini@eu.citrix.com "Chun Yan Liu" writes: >>>> On 9/6/2014 at 05:23 AM, in message > , Stefano > Stabellini wrote: >> On Fri, 5 Sep 2014, Chunyan Liu wrote: >> > Using xen tools 'xl vncviewer' with tigervnc (default on SLE-12), >> > found that: the display of the guest is unexpected while keep >> > pressing a key. We expect the same character multiple times, but >> > it prints only one time. This happens on a PV guest in text mode. >> > >> > After debugging, found that tigervnc sends repeated key down events >> > in this case, to differentiate from user pressing the same key many >> > times. Vnc server only prints the character when it finally receives >> > key up event. >> >> Is this actually how a vnc client should behave? >> How do the vnc client and server from realvnc behave in this regard >> (they are the reference implementation)? > > VNC protocol doesn't specify how to handle key repetition. Tightvnc > sends key-down&key-up repeatedly, but some example like RealVNC for > Windows does the same thing - it sends only repeated key-down. > > Generally the VNC keyboard handling gives lot of space for interpretation > and so the implementations differ. If implementations differ, and QEMU already behaves like some of them, then why change it? What exactly gets fixed and what gets broken by the proposed change? [...]