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

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

Issue 1883853002: Fixed first step of scrolling not applying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 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();
}
« 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