Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: ui/events/platform/x11/x11_event_source.cc

Issue 2055913002: Revert "Fixed first step of scrolling not applying" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698