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

Unified Diff: remoting/host/input_injector_mac.cc

Issue 243943002: Fixed multi-monitor mouse coordinates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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: remoting/host/input_injector_mac.cc
diff --git a/remoting/host/input_injector_mac.cc b/remoting/host/input_injector_mac.cc
index 30ea580471f398a3163f09fadbea25ae3a907ecf..c5e870026e3deff4e3e9205e2a6902b76f579821 100644
--- a/remoting/host/input_injector_mac.cc
+++ b/remoting/host/input_injector_mac.cc
@@ -248,8 +248,9 @@ void InputInjectorMac::Core::InjectMouseEvent(const MouseEvent& event) {
webrtc::MacDesktopConfiguration::TopLeftOrigin);
// Translate the mouse position into desktop coordinates.
- mouse_pos_.add(webrtc::DesktopVector(desktop_config.pixel_bounds.left(),
- desktop_config.pixel_bounds.top()));
+ mouse_pos_ = mouse_pos_.add(
+ webrtc::DesktopVector(desktop_config.pixel_bounds.left(),
+ desktop_config.pixel_bounds.top()));
// Constrain the mouse position to the desktop coordinates.
mouse_pos_.set(
« 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