| 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 c9e5e15d5967b1f5afeb97802f73e308c216c841..aa2549adc1ba8b64a6378a02d6d5eb1c05b77c08 100644
|
| --- a/ui/events/platform/x11/x11_event_source.cc
|
| +++ b/ui/events/platform/x11/x11_event_source.cc
|
| @@ -210,9 +210,7 @@ void X11EventSource::ExtractCookieDataDispatchEvent(XEvent* xevent) {
|
| void X11EventSource::PostDispatchEvent(XEvent* xevent) {
|
| if (xevent->type == GenericEvent &&
|
| (xevent->xgeneric.evtype == XI_HierarchyChanged ||
|
| - (xevent->xgeneric.evtype == XI_DeviceChanged &&
|
| - static_cast<XIDeviceChangedEvent*>(xevent->xcookie.data)->reason ==
|
| - XIDeviceChange))) {
|
| + xevent->xgeneric.evtype == XI_DeviceChanged)) {
|
| UpdateDeviceList();
|
| hotplug_event_handler_->OnHotplugEvent();
|
| }
|
|
|