Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JJT2Q-0001i6-Q9 for qemu-devel@nongnu.org; Mon, 28 Jan 2008 07:24:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JJT2P-0001g7-4n for qemu-devel@nongnu.org; Mon, 28 Jan 2008 07:24:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JJT2O-0001fv-Ml for qemu-devel@nongnu.org; Mon, 28 Jan 2008 07:24:32 -0500 Received: from m9.wifi.enstb.org ([193.50.97.170] helo=an-dro.enstb.org) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JJT2O-0006TW-Dl for qemu-devel@nongnu.org; Mon, 28 Jan 2008 07:24:32 -0500 Received: from an-dro.enstb.org (keryell@localhost [127.0.0.1]) by an-dro.enstb.org (8.14.2/8.14.2/Debian-2) with ESMTP id m0SCOR07022310 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Mon, 28 Jan 2008 13:24:27 +0100 Subject: Re: [Qemu-devel] [PATCH] mouse click simple queue References: <479DC0F0.5050205@citrix.com> From: Ronan Keryell Date: Mon, 28 Jan 2008 13:24:27 +0100 In-Reply-To: <479DC0F0.5050205@citrix.com> (Stefano Stabellini's message of "Mon\, 28 Jan 2008 11\:48\:00 +0000") Message-ID: <87fxwi2l50.fsf@an-dro.enstb.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable 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 >>>>> On Mon, 28 Jan 2008 11:48:00 +0000, Stefano Stabellini said: Stefano> Hi all, qemu doesn't enqueue mouse events, just records the Stefano> latest mouse state. This can cause some lost mouse double Stefano> clicks if the events are not processed fast enought. I am Stefano> attaching a patch that implements a simple queue for left Stefano> mouse click events. Good point! :-) But is it possible to use higher-level queue constructions rather than inlining the queue behaviour in the code? Because it will be hard to maintain if everybody introduces her own queue, list or whatever structure each time it is needed... It reminds me the MINIX source code, quite hard to modify because of this kind of stuff... :-) Thank you! --=20 Ronan KERYELL |\/ Tel: (+33|0) 2.29.00.14.15 D=E9partement Informatique |/) Fax: (+33|0) 2.29.00.12.82 T=C9L=C9COM Bretagne, CS 83818 K GSM: (+33|0) 6.13.14.37.66 F-29238 PLOUZAN=C9 CEDEX 3 |\ E-mail: rk@enstb.org FRANCE | \ http://enstb.org/~keryell