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

Bug#490912: Cursor Stucked at bottom right



On Tue, Jul 15, 2008 at 09:42:05 +0000, Gerard Mensoif wrote:

> If using:
> Option          "Device"                "/dev/input/mice"
> in my /etc/X11/xorg.conf, vmmouse does not work any longer. It worked
> before last update. If I comment this lise the driver falls back to
> mouse, wich removes the ability of switching from guest OS to host OS.
> iThe visible cursor is moving, but every click goes to the bottom
> right corner of the screen. It's seems to be an old bug who surfaced
> again http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=442853 and
> http://bugs.freedesktop.org/show_bug.cgi?id=12506. The old proposed
> patch resolves this bug.
> 
Hi,

as far as I can see, the server expects the driver to setup the axis min
and max values correctly so it can do the scaling, and vmmouse doesn't do
that.  Can some of you try the patch below, which should fix this
issue, and report back?

Thanks in advance,
Julien

>From 74d1f41d644e113bee86929b5d0c638a3b2c25d6 Mon Sep 17 00:00:00 2001
From: Julien Cristau <jcristau@debian.org>
Date: Sun, 12 Oct 2008 12:09:17 +0200
Subject: [PATCH] Pass max_value when setting up valuators

Without this, the server doesn't scale events properly.
Should fix Debian bug#490912.
---
 src/vmmouse.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/vmmouse.c b/src/vmmouse.c
index 1e2a1c9..86a71f5 100644
--- a/src/vmmouse.c
+++ b/src/vmmouse.c
@@ -807,10 +807,10 @@ VMMouseDeviceControl(DeviceIntPtr device, int mode)
                                 );
 
       /* X valuator */
-      xf86InitValuatorAxisStruct(device, 0, 0, -1, 1, 0, 1);
+      xf86InitValuatorAxisStruct(device, 0, 0, 65535, 1, 0, 1);
       xf86InitValuatorDefaults(device, 0);
       /* Y valuator */
-      xf86InitValuatorAxisStruct(device, 1, 0, -1, 1, 0, 1);
+      xf86InitValuatorAxisStruct(device, 1, 0, 65535, 1, 0, 1);
       xf86InitValuatorDefaults(device, 1);
 #if GET_ABI_MAJOR(ABI_XINPUT_VERSION) == 0
       xf86MotionHistoryAllocate(pInfo);
-- 
1.5.6.5




Reply to: