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

Bug#454263: xserver-xorg-input-vmmouse: vmmouse not used if specified in xorg.conf



reassign 454263 xserver-xorg-core 2:1.4.2-1
retitle 454263 vmmouse section should be used as core pointer device
kthxbye

On Tue, Dec  4, 2007 at 13:33:25 +0100, Philipp Kolmann wrote:

> I just installed a plain new Debian Sid in a vmware and wanted to change
> the mouse to vmmouse. But since the new X Server is in Sid, it doesn't
> take the vmmouse anymore.
> 
> (==) |-->Input Device "<default pointer>"
> (==) |-->Input Device "Generic Keyboard"
> (==) The core pointer device wasn't specified explicitly in the layout.
> 	Using the default mouse configuration.
> (==) The core keyboard device wasn't specified explicitly in the layout.
> 	Using the first keyboard device.

Could you try the following patch (against xorg-server)?  The server
should then use the vmmouse section as its core pointer device instead
of adding a mouse device.  If you can quickly confirm that this works,
I'll try to include it in the xserver for lenny.

Cheers,
Julien

>From 92788a4b8c240231ab9f2ec2365afd3c6fdc1a5c Mon Sep 17 00:00:00 2001
From: Julien Cristau <jcristau@debian.org>
Date: Sun, 16 Nov 2008 01:22:58 +0100
Subject: [PATCH] Look for a device using 'vmmouse' if we can't find one with 'mouse'

When looking for the core pointer device, fall back to the 'vmmouse'
driver if no device in xorg.conf uses 'mouse'.
---
 hw/xfree86/common/xf86Config.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c
index 3c29497..dec6711 100644
--- a/hw/xfree86/common/xf86Config.c
+++ b/hw/xfree86/common/xf86Config.c
@@ -1326,6 +1326,10 @@ checkCoreInputDevices(serverLayoutPtr servlayoutp, Bool implicitLayout)
 	    confInput = xf86findInputByDriver("mouse",
 					      xf86configptr->conf_input_lst);
 	}
+	if (!confInput) {
+	    confInput = xf86findInputByDriver("vmmouse",
+	                                      xf86configptr->conf_input_lst);
+	}
 	if (confInput) {
 	    foundPointer = TRUE;
 	    from = X_DEFAULT;
-- 
1.5.6.5




Reply to: