[PATCH synaptics 01/11] Don't allow anything but relative mode.
Peter Hutterer
peter.hutterer at who-t.net
Tue Jun 15 17:21:18 PDT 2010
We did this before already anyway, make it official and return an error to
the client as appropriate. Touchpads in absolute mode are somewhat useless.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/synaptics.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/synaptics.c b/src/synaptics.c
index 3841517..fae071d 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2462,7 +2462,7 @@ static int
SwitchMode(ClientPtr client, DeviceIntPtr dev, int mode)
{
DBG(3, "SwitchMode called\n");
- return Success;
+ return (mode == Relative) ? Success : XI_BadMode;
}
static Bool
--
1.7.0.1
More information about the xorg-devel
mailing list