Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Unified Diff: ui/events/devices/x11/touch_factory_x11.cc

Issue 1230353002: Small fix for touch screen on Linux with or without flag --touch-devices (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/devices/x11/touch_factory_x11.cc
diff --git a/ui/events/devices/x11/touch_factory_x11.cc b/ui/events/devices/x11/touch_factory_x11.cc
index bd7b15714b347899ef7856d469ac04e0891c866f..322934447348528a0161496b8405bbd265d2cd6e 100644
--- a/ui/events/devices/x11/touch_factory_x11.cc
+++ b/ui/events/devices/x11/touch_factory_x11.cc
@@ -128,7 +128,7 @@ void TouchFactory::UpdateDeviceList(Display* display) {
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) {
CacheTouchscreenIds(devinfo.deviceid);
if (devinfo.use == XISlavePointer) {
device_master_id_list_[devinfo.deviceid] = devinfo.attachment;
@@ -137,6 +137,7 @@ void TouchFactory::UpdateDeviceList(Display* display) {
touch_device_lookup_[devinfo.attachment] = true;
touch_device_list_[devinfo.attachment] = true;
}
+ }
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698