| Index: ui/events/ozone/evdev/device_manager_udev.cc
|
| diff --git a/ui/events/ozone/evdev/device_manager_udev.cc b/ui/events/ozone/evdev/device_manager_udev.cc
|
| index de7b29dff71cc3f718fdc23f4c0cae1de43245ff..f08a0b0858b57ef287cbff01bfda0cf797b518a1 100644
|
| --- a/ui/events/ozone/evdev/device_manager_udev.cc
|
| +++ b/ui/events/ozone/evdev/device_manager_udev.cc
|
| @@ -10,6 +10,7 @@
|
| #include "base/files/file_path.h"
|
| #include "base/memory/scoped_ptr.h"
|
| #include "base/message_loop/message_pump_ozone.h"
|
| +#include "base/strings/string_util.h"
|
| #include "base/strings/stringprintf.h"
|
| #include "ui/events/ozone/evdev/device_manager_evdev.h"
|
| #include "ui/events/ozone/evdev/event_factory_evdev.h"
|
| @@ -101,6 +102,10 @@ bool UdevEnumerateInputDevices(struct udev* udev,
|
| if (!path)
|
| continue;
|
|
|
| + // Filter non-evdev device notes.
|
| + if (!StartsWithASCII(path, "/dev/input/event", true))
|
| + continue;
|
| +
|
| // Found input device node; attach.
|
| device_callback.Run(base::FilePath(path));
|
| }
|
|
|