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

Unified Diff: ui/events/ozone/evdev/event_factory_evdev.cc

Issue 657603002: ash: ozone: apply transformation to events outside the root window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove explicit gfx::Rect to gfx::RectF conversion Created 6 years, 1 month 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
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 ed4a78c984c40850325f3c75aa4c3d04d60f0567..d98681740ed691d7175bf8c50dd1ecaa4f6516d2 100644
--- a/ui/events/ozone/evdev/event_factory_evdev.cc
+++ b/ui/events/ozone/evdev/event_factory_evdev.cc
@@ -293,8 +293,8 @@ void EventFactoryEvdev::WarpCursorTo(gfx::AcceleratedWidget widget,
if (cursor_) {
cursor_->MoveCursorTo(widget, location);
PostUiEvent(make_scoped_ptr(new MouseEvent(ET_MOUSE_MOVED,
- cursor_->location(),
- cursor_->location(),
+ cursor_->GetLocation(),
+ cursor_->GetRootLocation(),
modifiers_.GetModifierFlags(),
/* changed_button_flags */ 0)));
}

Powered by Google App Engine
This is Rietveld 408576698