[PATCH synaptics] Only return Success on mode switch for mode Relative.

Peter Hutterer peter.hutterer at who-t.net
Sun Mar 7 15:14:49 PST 2010


We don't do Absolute mode in synaptics, so let's not return Success when a
client tries to switch the touchpad to absolute mode.

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 bf4a28b..c28988f 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2372,7 +2372,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.6.6.1



More information about the xorg-devel mailing list