From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D6FJI-0001yN-Is for qemu-devel@nongnu.org; Tue, 01 Mar 2005 16:53:45 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D6FJA-0001pB-3F for qemu-devel@nongnu.org; Tue, 01 Mar 2005 16:53:36 -0500 Received: from [129.104.30.34] (helo=mx1.polytechnique.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D6EtZ-0004lt-D8 for qemu-devel@nongnu.org; Tue, 01 Mar 2005 16:27:09 -0500 Received: from [84.99.204.3] (3.204.99-84.rev.gaoland.net [84.99.204.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ssl.polytechnique.org (Postfix) with ESMTP id 5A988331B1 for ; Tue, 1 Mar 2005 22:27:08 +0100 (CET) Message-ID: <4224DE76.4060803@bellard.org> Date: Tue, 01 Mar 2005 22:28:22 +0100 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] [Patch] Release mouse at window edges References: <6879.1109430585@www57.gmx.net> In-Reply-To: <6879.1109430585@www57.gmx.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 The idea is interesting. Does it cause regressions in the normal mode ? If so, an option to enable it may be good. I think it is a problem that your patch is dependent on the cursor size. Fabrice. olig9@gmx.de wrote: > Hello, > the attached patch makes Qemu ungrab the mouse cursor when the guest mouse > cursor hits the window edges. It also makes qemu automatically grab the > mouse when the host mouse cursor enters the window. > > The patch uses the hardware cursor position (in cirrus_vga.c); this means > that it only works when the guest system uses a hardware cursor and when > Cirrus VGA is used. > > For Linux guest (tested with GamesKnoppix), it works when enabling > "hw_cursor" in XF86Config-4 (in "Device" setion for "cirrus" driver). > For Win98se, it works when setting display hardware acceleration to maximum > and using the standard b/w, non-animated cursor set. > For Win2k Professional, it requires a newer Cirrus driver (old standard > Win2k driver for "GD5446 compatible" is from 1999, new driver from ISDCorp > is from 2000). It can be found > at > . > Besides the new driver, you have to do the same as under Win98, and you must > disable mouse shadow. > > The patch applies cleanly to qemu-snapshot-2005-02-25_23.tar.bz2. > > Oliver Gerlich