From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FdlQj-0007K3-AT for qemu-devel@nongnu.org; Wed, 10 May 2006 05:56:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FdlQh-0007Im-J8 for qemu-devel@nongnu.org; Wed, 10 May 2006 05:56:28 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FdlQh-0007If-Bi for qemu-devel@nongnu.org; Wed, 10 May 2006 05:56:27 -0400 Received: from [195.252.0.52] (helo=zebra.uas.se) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FdlRw-0006DM-TX for qemu-devel@nongnu.org; Wed, 10 May 2006 05:57:45 -0400 Received: from [127.0.0.1] ([195.252.0.249]) by zebra.uas.se (PMDF V6.0-24 #39208) with ESMTP id <01M297E3VG8G00094D@zebra.uas.se> for qemu-devel@nongnu.org; Wed, 10 May 2006 11:30:47 +0200 Date: Wed, 10 May 2006 11:30:45 +0200 From: Dan Sandberg Subject: Re: [Qemu-devel] QEMU 0.8.1 - Invisible wall In-reply-to: <170581c20605091618k18f2617ajd4ff14b7ffa353fc@mail.gmail.com> Message-id: <4461B2C5.7060005@medsci.uu.se> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: QUOTED-PRINTABLE References: <4459165F.7050605@bellard.org> <46d6db660605040513y3534fecdr5ffe4e632108e413@mail.gmail.com> <46d6db660605040524h1d5f1484mb3a4cf1e343d6984@mail.gmail.com> <46d6db660605040531q3a602d03yd8f25b23823e1424@mail.gmail.com> <170581c20605040751y5118c2en360b67901b2b27a5@mail.gmail.com> <445AB8FE.9040003@us.ibm.com> <170581c20605091618k18f2617ajd4ff14b7ffa353fc@mail.gmail.com> 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 Thomas Han wrote: > Hi Anthony, > > Sorry for the late reply. I did try out the patch with my local bu= ild=20 > and I > haven't see that "invisible wall" mouse problem for a few days now= . > > Thanks very much, > Thomas > > On 5/4/06, Anthony Liguori wrote: > >> >> Thomas Han wrote: >> > Hi, >> > >> > For what it's worth. I have also seen this "invisible wall" pro= blem >> > with my mouse for a few weeks off the CVS build too. >> >> Can you try out the following patch. *grumbles about SDL's broken= ness* >> >> Regards, >> >> Anthony Liguori >> >> > Since 0.8.1 came out yesterday, Instead of using CVS build, I'm = now >> > running Qemu 0.8.1 + kqemu-1.3.0pre6. My host OS is FC5 and I'm >> > running XP inside it. >> > >> > Thanks, >> > Thomas >> > >> > On 5/4/06, *Christian MICHON* < christian.michon@gmail.com >> > > wrote: >> > >> > qemu 0.8.0 does not show this invisible barrier issue. >> > if this is worth anything, I use SDL 1.2.9. >> > >> > If someone can reproduce the issue also on linux hosts, >> > there could be a lead. >> > >> > On 5/4/06, Christian MICHON > > > wrote: >> > > I removed manually vnc_display_init, and this is not the >> culprit... >> > > I'll check anyway versus qemu-0.8.0... >> > > >> > -- >> > Christian >> > >> > >> > _______________________________________________ >> > Qemu-devel mailing list >> > Qemu-devel@nongnu.org >> > http://lists.nongnu.org/mailman/listinfo/qemu-devel >> > >> > >> >=20 >> ------------------------------------------------------------------= ------ >> > >> > _______________________________________________ >> > Qemu-devel mailing list >> > Qemu-devel@nongnu.org >> > http://lists.nongnu.org/mailman/listinfo/qemu-devel >> > >> >> >> >> diff -r 39a6dd1136c6 sdl.c >> --- a/sdl.c Thu May 04 04:13:13 2006 +0000 >> +++ b/sdl.c Thu May 04 21:30:11 2006 -0500 >> @@ -280,13 +280,18 @@ static void sdl_update_caption(void) >> >> static void sdl_hide_cursor(void) >> { >> - SDL_SetCursor(sdl_cursor_hidden); >> + if (kbd_mouse_is_absolute()) { >> + SDL_ShowCursor(1); >> + SDL_SetCursor(sdl_cursor_hidden); >> + } else { >> + SDL_ShowCursor(0); >> + } >> } >> >> static void sdl_show_cursor(void) >> { >> if (!kbd_mouse_is_absolute()) { >> - SDL_SetCursor(sdl_cursor_normal); >> + SDL_ShowCursor(1); >> } >> } >> >> >> >> _______________________________________________ >> Qemu-devel mailing list >> Qemu-devel@nongnu.org >> http://lists.nongnu.org/mailman/listinfo/qemu-devel >> >> >> > >--------------------------------------------------------------------= ---- > >_______________________________________________ >Qemu-devel mailing list >Qemu-devel@nongnu.org >http://lists.nongnu.org/mailman/listinfo/qemu-devel > =20 > On my installation (v0.8.1 with WindowsXP host) the "invisible wall" = can=20 be avoided or reproduced at will and I guess this indicates what=B4s = wrong. After leaving MouseGrab with Ctrl-Alt there will be an invisible wall= if=20 I reenter by clicking with the host's mouse pointer far away from whe= re=20 the quest-OS-pointer is. On the other hand if I reenter by carefully= =20 clicking exactly at the guest-OS-pointer they will be in sync and= =20 everything seems to be OK. I haven=B4t been looking at the source-code, but my suggestion is tha= t in=20 the Click-event-handler where Mousegrab is entered the guest-OS point= er=20 coordinates should be passed rather than the host's coordinates=20 (simulating a click at the exakt right position). Regards Dan Sandberg