From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BEErM-0000WH-Re for qemu-devel@nongnu.org; Thu, 15 Apr 2004 17:57:24 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BEEqj-0000Ev-7N for qemu-devel@nongnu.org; Thu, 15 Apr 2004 17:57:16 -0400 Received: from [195.238.2.99] (helo=outmx006.isp.belgacom.be) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BEEqi-0000Ci-IJ for qemu-devel@nongnu.org; Thu, 15 Apr 2004 17:56:44 -0400 Message-ID: <407F13C9.1000000@easynet.be> Date: Fri, 16 Apr 2004 00:59:21 +0200 From: Mark Jonckheere MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------040804010309070007060107" Subject: [Qemu-devel] WinXP mouse patch 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 This is a multi-part message in MIME format. --------------040804010309070007060107 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit The following patch against the latest CVS (13 april) resolved for me the slow mouse movements in WinXP. It removes from the datastream dummy mouse-events that contain no movement or button-change. This is probably the same problem as in Win2K. to apply the patch: save attachment cd qemu/hw patch -p0 < /path/to/pckbd.diff cd .. make Happy testing, Mark. -- :wq --------------040804010309070007060107 Content-Type: text/plain; name="pckbd.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pckbd.diff" --- pckbd.c.orig Sat Apr 10 21:04:48 2004 +++ pckbd.c Fri Apr 16 00:24:27 2004 @@ -442,9 +442,14 @@ if (!(s->mouse_status & MOUSE_STATUS_ENABLED)) return; +#ifdef DEBUG_MOUSE + printf("MOUSE %d %d %d %d\n", dx, dy, dz, buttons_state); +#endif s->mouse_dx += dx; s->mouse_dy -= dy; s->mouse_dz += dz; + if (s->mouse_dx == 0 && s->mouse_dy == 0 && s->mouse_dz == 0 && s->mouse_buttons == buttons_state) + return; s->mouse_buttons = buttons_state; if (!(s->mouse_status & MOUSE_STATUS_REMOTE) && --------------040804010309070007060107--