From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L7Fq7-0004FK-4K for qemu-devel@nongnu.org; Mon, 01 Dec 2008 15:57:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L7Fq6-0004Eq-D5 for qemu-devel@nongnu.org; Mon, 01 Dec 2008 15:57:54 -0500 Received: from [199.232.76.173] (port=36228 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L7Fq6-0004Ei-3w for qemu-devel@nongnu.org; Mon, 01 Dec 2008 15:57:54 -0500 Received: from savannah.gnu.org ([199.232.41.3]:43793 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L7Fq5-0006gA-Ke for qemu-devel@nongnu.org; Mon, 01 Dec 2008 15:57:53 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L7Fq5-0004jg-2U for qemu-devel@nongnu.org; Mon, 01 Dec 2008 20:57:53 +0000 Received: from malc by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L7Fq4-0004jQ-PB for qemu-devel@nongnu.org; Mon, 01 Dec 2008 20:57:52 +0000 MIME-Version: 1.0 Errors-To: malc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: malc Message-Id: Date: Mon, 01 Dec 2008 20:57:52 +0000 Subject: [Qemu-devel] [5851] Reset the key modifiers upon client connect Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5851 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5851 Author: malc Date: 2008-12-01 20:57:52 +0000 (Mon, 01 Dec 2008) Log Message: ----------- Reset the key modifiers upon client connect VNC should not maintain modifer state upon reconnects With some window managers/vnc clients it will only see a key down event for a modifier followed by immediate disconnect(think Alt-F4), with a net effect of subsequently connected clients operating as if the modifier was never released. Modified Paths: -------------- trunk/vnc.c Modified: trunk/vnc.c =================================================================== --- trunk/vnc.c 2008-12-01 20:57:48 UTC (rev 5850) +++ trunk/vnc.c 2008-12-01 20:57:52 UTC (rev 5851) @@ -2246,6 +2246,7 @@ vs->has_hextile = 0; vs->ds->dpy_copy = NULL; vnc_update_client(vs); + reset_keys(vs); } static void vnc_listen_read(void *opaque)