1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
Description: Add touchscreen support for other xi2 devices.
Author: Chad MILLER <chad.miller@canonical.com>
Forwarded: yes
--- a/ui/events/devices/x11/touch_factory_x11.cc
+++ b/ui/events/devices/x11/touch_factory_x11.cc
@@ -128,8 +128,11 @@ void TouchFactory::UpdateDeviceList(Disp
XITouchClassInfo* tci =
reinterpret_cast<XITouchClassInfo*>(xiclassinfo);
// Only care direct touch device (such as touch screen) right now
- if (tci->mode == XIDirectTouch)
+ if (tci->mode == XIDirectTouch) {
+ touch_device_lookup_[devinfo.deviceid] = true;
+ touch_device_list_[devinfo.deviceid] = true;
CacheTouchscreenIds(devinfo.deviceid);
+ }
}
}
}
|