| Index: ui/events/ozone/evdev/event_factory_evdev.cc
|
| diff --git a/ui/events/ozone/evdev/event_factory_evdev.cc b/ui/events/ozone/evdev/event_factory_evdev.cc
|
| index b1c5c4c381d947b959042348253d0a65dc28dcd0..9203e10d4467409280accd76d64198863dcbd7e9 100644
|
| --- a/ui/events/ozone/evdev/event_factory_evdev.cc
|
| +++ b/ui/events/ozone/evdev/event_factory_evdev.cc
|
| @@ -206,6 +206,13 @@ void EventFactoryEvdev::OnDeviceEvent(const DeviceEvent& event) {
|
| }
|
| }
|
|
|
| +void EventFactoryEvdev::OnDispatcherListChanged() {
|
| + if (ui_task_runner_)
|
| + return;
|
| + ui_task_runner_ = base::MessageLoopProxy::current();
|
| + StartProcessingEvents();
|
| +}
|
| +
|
| void EventFactoryEvdev::DetachInputDevice(const base::FilePath& path) {
|
| TRACE_EVENT1("ozone", "DetachInputDevice", "path", path.value());
|
| CHECK(ui_task_runner_->RunsTasksOnCurrentThread());
|
| @@ -228,6 +235,8 @@ void EventFactoryEvdev::DetachInputDevice(const base::FilePath& path) {
|
| }
|
|
|
| void EventFactoryEvdev::StartProcessingEvents() {
|
| + if (!ui_task_runner_)
|
| + return;
|
| CHECK(ui_task_runner_->RunsTasksOnCurrentThread());
|
|
|
| if (device_manager_ && !has_started_processing_events_) {
|
|
|