xcb: correct conversion of AbsX/AbsY to tablet width and height
This was a mistake in cb37ab8298
Change-Id: I5897ceb34ab4aa1655efd20697d0e761cf7796b1
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
Reviewed-by: Alexander Volkov <a.volkov@rusbitech.ru>
bb10
parent
3fdbba7a7a
commit
2b2fefb336
|
|
@ -441,10 +441,10 @@ XInput2TouchDeviceData *QXcbConnection::touchDeviceForId(int id)
|
|||
dev->size.setHeight((vci->max - vci->min) * 1000.0 / vciResolution);
|
||||
} else if (vci->label == atom(QXcbAtom::AbsX)) {
|
||||
caps |= QTouchDevice::Position;
|
||||
dev->size.setHeight((vci->max - vci->min) * 1000.0 / vciResolution);
|
||||
dev->size.setWidth((vci->max - vci->min) * 1000.0 / vciResolution);
|
||||
} else if (vci->label == atom(QXcbAtom::AbsY)) {
|
||||
caps |= QTouchDevice::Position;
|
||||
dev->size.setWidth((vci->max - vci->min) * 1000.0 / vciResolution);
|
||||
dev->size.setHeight((vci->max - vci->min) * 1000.0 / vciResolution);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue