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

Unified Diff: ui/aura/test/x11_event_sender.cc

Issue 1906603002: mus: Fix event transformation in client code. 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 | ui/aura/window_event_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/test/x11_event_sender.cc
diff --git a/ui/aura/test/x11_event_sender.cc b/ui/aura/test/x11_event_sender.cc
index bc58502d18a91c2c0c051b7dc5c0807ef3f5c70c..3116a5ca38d3410a6271ee8d4490ac836757b9ff 100644
--- a/ui/aura/test/x11_event_sender.cc
+++ b/ui/aura/test/x11_event_sender.cc
@@ -34,9 +34,12 @@ void PostEventToWindowTreeHost(const XEvent& xevent, WindowTreeHost* host) {
event.xmotion.time = CurrentTime;
gfx::Point point(event.xmotion.x, event.xmotion.y);
- host->ConvertPointToNativeScreen(&point);
- event.xmotion.x_root = point.x();
- event.xmotion.y_root = point.y();
+ gfx::Point root_point = point;
+ host->ConvertPointToNativeScreen(&root_point);
+ event.xmotion.x_root = root_point.x();
+ event.xmotion.y_root = root_point.y();
+ LOG(ERROR) << "Posting at " << point.ToString() << " vs. "
+ << root_point.ToString();
}
default:
break;
« no previous file with comments | « no previous file | ui/aura/window_event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698