Thomas Han wrote:

Hi Anthony,

Sorry for the late reply. I did try out the patch with my local build 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 <[EMAIL PROTECTED]> wrote:


Thomas Han wrote:
> Hi,
>
> For what it's worth.  I have also seen this "invisible wall" problem
> with my mouse for a few weeks off the CVS build too.

Can you try out the following patch.  *grumbles about SDL's brokenness*

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* < [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> 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 <[EMAIL PROTECTED]
>     <mailto:[EMAIL PROTECTED]>> 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 <mailto: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
>



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
On my installation (v0.8.1 with WindowsXP host) the "invisible wall" can be avoided or reproduced at will and I guess this indicates what´s wrong.

After leaving MouseGrab with Ctrl-Alt there will be an invisible wall if I reenter by clicking with the host's mouse pointer far away from where the quest-OS-pointer is. On the other hand if I reenter by carefully clicking exactly at the guest-OS-pointer they will be in sync and everything seems to be OK. I haven´t been looking at the source-code, but my suggestion is that in the Click-event-handler where Mousegrab is entered the guest-OS pointer coordinates should be passed rather than the host's coordinates (simulating a click at the exakt right position).
Regards
Dan Sandberg






_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel

Reply via email to