xcb: touch device mode is either Dependent or Direct, not Rel or Abs

Change-Id: Ic0091007c95c4c307485bc2d5d3e1e967b44323e
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
This commit is contained in:
Shawn Rutledge 2014-06-10 15:25:34 +02:00
parent ad9ca60522
commit 4038f21dd0

View File

@ -347,10 +347,10 @@ XInput2DeviceData *QXcbConnection::deviceForId(int id)
if (Q_UNLIKELY(debug_xinput_devices))
qDebug(" has touch class with mode %d", tci->mode);
switch (tci->mode) {
case XIModeRelative:
case XIDependentTouch:
type = QTouchDevice::TouchPad;
break;
case XIModeAbsolute:
case XIDirectTouch:
type = QTouchDevice::TouchScreen;
break;
}