Index: ui/events/ozone/evdev/input_device_factory_evdev.cc |
diff --git a/ui/events/ozone/evdev/input_device_factory_evdev.cc b/ui/events/ozone/evdev/input_device_factory_evdev.cc |
index 73e16c60f5722af630525b0bb8d1a707f1a93820..1bf91146e9e4d35cce93781d4456ff01e9022707 100644 |
--- a/ui/events/ozone/evdev/input_device_factory_evdev.cc |
+++ b/ui/events/ozone/evdev/input_device_factory_evdev.cc |
@@ -367,6 +367,10 @@ bool InputDeviceFactoryEvdev::IsDeviceEnabled( |
converter->HasTouchpad()) |
return false; |
+ if (!input_device_settings_.enable_touch_screens && |
+ converter->HasTouchscreen()) |
+ return false; |
+ |
return input_device_settings_.enable_devices; |
} |