From db63904ab567209e4318a81d440f183686418b77 Mon Sep 17 00:00:00 2001 From: lanwei Date: Mon, 13 Jul 2015 12:54:15 -0700 Subject: Small fix for touch screen on Linux with or without flag --touch-devices This is a small fix, missing a pair of brackets of "if" statement for issue 1186833005: Fix touch screen on Linux with or without flag --touch-devices (https://codereview.chromium.org/1186833005/) BUG=486492 Review URL: https://codereview.chromium.org/1230353002 Cr-Commit-Position: refs/heads/master@{#338553} --- ui/events/devices/x11/touch_factory_x11.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ui') diff --git a/ui/events/devices/x11/touch_factory_x11.cc b/ui/events/devices/x11/touch_factory_x11.cc index bd7b157..3229344 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(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; } + } } } } -- cgit v1.1