xcb: fix touchscreen input with certain capabilities only
Touch screens without the "Abs MT Position X" but "Abs X" capability weren't detected correctly so far. This patch fixes the detection and enables these tochscreens. Change-Id: I32fdb4d56c106717c90904a6632c2838bd55a255 Task-number: QTBUG-48279 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com> Reviewed-by: Shawn Rutledge <shawn.rutledge@theqtcompany.com>
This commit is contained in:
parent
2d6f9b6148
commit
462f355e4f
@ -419,8 +419,10 @@ XInput2TouchDeviceData *QXcbConnection::touchDeviceForId(int id)
|
||||
hasRelativeCoords = true;
|
||||
dev->size.setHeight((vci->max - vci->min) * 1000.0 / vci->resolution);
|
||||
} else if (vci->label == atom(QXcbAtom::AbsX)) {
|
||||
caps |= QTouchDevice::Position;
|
||||
dev->size.setHeight((vci->max - vci->min) * 1000.0 / vci->resolution);
|
||||
} else if (vci->label == atom(QXcbAtom::AbsY)) {
|
||||
caps |= QTouchDevice::Position;
|
||||
dev->size.setWidth((vci->max - vci->min) * 1000.0 / vci->resolution);
|
||||
}
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user