[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [Patch] Release mouse at window edges

From: Fabrice Bellard
Subject: Re: [Qemu-devel] [Patch] Release mouse at window edges
Date: Tue, 01 Mar 2005 22:28:22 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

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.


address@hidden wrote:
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
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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]