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 1BHtFA-00021Z-Ui for qemu-devel@nongnu.org; Sun, 25 Apr 2004 19:41:04 -0400 Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BHtER-0001WW-9x for qemu-devel@nongnu.org; Sun, 25 Apr 2004 19:40:51 -0400 Received: from [66.90.130.74] (helo=mx2.lsn.net) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1BHtD8-0000he-E2 for qemu-devel@nongnu.org; Sun, 25 Apr 2004 19:38:58 -0400 Received: from grandecom.net (216-188-224-19.dyn.grandenetworks.net [216.188.224.19]) by mx2.lsn.net (8.12.8/8.12.8) with ESMTP id i3PNd0xL021023 for ; Sun, 25 Apr 2004 18:39:01 -0500 Message-ID: <408C4D84.7090709@grandecom.net> Date: Sun, 25 Apr 2004 18:45:08 -0500 From: Greg Alexander MIME-Version: 1.0 Subject: Re: [Qemu-devel] [SDL] Problem with mouse grabbing References: <20040423203518.GA19728@jbrown.mylinuxbox.org> In-Reply-To: <20040423203518.GA19728@jbrown.mylinuxbox.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: gwa@alumni.cmu.edu, 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 QEMU Needs to grab the mouse because it emulates a real mouse, instead of using a pseudo-mouse driver. As a result, mouse scaling will always be a problem, since all the user has to do is change the mouse scaling in the host OS to cause problems with the tracking (the scaling problem you noticed.) That's not to mention if the mouse came in somewhere different from where it left. There's nothing to cause the emulated mouse pointer to move to the position where the real one entered the QEMU window. GREG Jim C. Brown wrote: > Why does qemu grab the mouse? Sometimes, when it is closing, I will > forget to press Ctrl-Shift, and the mouse ends up being unusable. > > This got very old in a very short amount of time, so I edited sdl.c to simply > "follow" the X mouse pointer, ala VNC-style, and it works. There is a strange > bug, but aside from that it works perfectly. I find this more convenient > for handling the mouse. My question is: why does qemu grab the mouse pointer > instead of just following it? Is this for technical reasons or just because > the VM looks nicer that way? > > P.S. The strange bug is simply that the virtual mouse pointer moves a little bit > faster than the real mouse pointer. It's annoying but still usable, although > it does cause the virtual mouse pointer to show up in odd places every now and > then. >