mirror of
https://github.com/X11Libre/xf86-input-synaptics.git
synced 2026-03-24 01:34:04 +00:00
Don't initialize semi-multitouch devices for touch device class
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
This commit is contained in:
@@ -812,10 +812,20 @@ event_query_touch(InputInfoPtr pInfo)
|
||||
struct eventcomm_proto_data *proto_data = priv->proto_data;
|
||||
struct mtdev *mtdev;
|
||||
int i;
|
||||
int rc;
|
||||
uint8_t prop;
|
||||
|
||||
priv->num_touches = 0;
|
||||
priv->num_mt_axes = 0;
|
||||
|
||||
SYSCALL(rc = ioctl(pInfo->fd, EVIOCGPROP(sizeof(prop)), &prop));
|
||||
if (rc >= 0 && BitIsOn(&prop, INPUT_PROP_SEMI_MT))
|
||||
{
|
||||
xf86IDrvMsg(pInfo, X_INFO,
|
||||
"ignoring touch events for semi-multitouch device\n");
|
||||
return;
|
||||
}
|
||||
|
||||
mtdev = mtdev_new_open(pInfo->fd);
|
||||
if (!mtdev)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user