| Index: ui/events/platform/x11/x11_event_source.cc
|
| diff --git a/ui/events/platform/x11/x11_event_source.cc b/ui/events/platform/x11/x11_event_source.cc
|
| index f450227f86cbbdef89f8acd51db3ed8b4ee8694e..e1bc15ecc3176812a5d161a07b252fb666514853 100644
|
| --- a/ui/events/platform/x11/x11_event_source.cc
|
| +++ b/ui/events/platform/x11/x11_event_source.cc
|
| @@ -111,7 +111,9 @@ void X11EventSource::ExtractCookieDataDispatchEvent(XEvent* xevent) {
|
| void X11EventSource::PostDispatchEvent(XEvent* xevent) {
|
| if (xevent->type == GenericEvent &&
|
| (xevent->xgeneric.evtype == XI_HierarchyChanged ||
|
| - xevent->xgeneric.evtype == XI_DeviceChanged)) {
|
| + (xevent->xgeneric.evtype == XI_DeviceChanged &&
|
| + static_cast<XIDeviceChangedEvent*>(xevent->xcookie.data)->reason ==
|
| + XIDeviceChange))) {
|
| ui::UpdateDeviceList();
|
| hotplug_event_handler_->OnHotplugEvent();
|
| }
|
|
|