summaryrefslogtreecommitdiff
path: root/src/synproto.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-03-21 11:23:34 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-04-04 09:39:10 +1000
commit241254e352f5c4e3d6850e0916261cb235c6b608 (patch)
tree2d994278e959379cf2c9fbb606838effd4760dec /src/synproto.h
parentf65f8a8365b158cbdb6cdc3f74afc08a2653c084 (diff)
Don't autoprobe for devices when Option Device is set.
If only Option Device is set but no protocol, the code calls into AutoDevProbe. eventcomm (the only backend with an AutoDevProbe) then runs through all /dev/input/event devices and takes the first one it can find. If two touchpads are connected on a system, this may cause the same touchpad to be added twice and the other one not at all - even though the device path is specified. (This can only happen when the event device is not grabbed, otherwise the grabcheck prevents the touchpad from being added twice) Pass the device option into AutoDevProbe and check that device first. If it is a touchpad, finish with success. If it isn't, fail AutoDevProbe. Introduced in dce6006f6a851be4147e16731caa453dd0d1ec1c. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> CC: Alexandr Shadchin <alexandr.shadchin@gmail.com> Reviewed-by: Chris Bagwell <chris@cnpbagwell.com>
Diffstat (limited to 'src/synproto.h')
-rw-r--r--src/synproto.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/synproto.h b/src/synproto.h
index 251dc84..75f90e4 100644
--- a/src/synproto.h
+++ b/src/synproto.h
@@ -75,7 +75,7 @@ struct SynapticsProtocolOperations {
Bool (*QueryHardware)(InputInfoPtr pInfo);
Bool (*ReadHwState)(InputInfoPtr pInfo,
struct CommData *comm, struct SynapticsHwState *hwRet);
- Bool (*AutoDevProbe)(InputInfoPtr pInfo);
+ Bool (*AutoDevProbe)(InputInfoPtr pInfo, const char *device);
void (*ReadDevDimensions)(InputInfoPtr pInfo);
};