diff options
author | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-19 01:50:29 +0000 |
---|---|---|
committer | jamiewalch@chromium.org <jamiewalch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-19 01:50:29 +0000 |
commit | db26f9aac63be5f7041fc835813c70f86525d6d7 (patch) | |
tree | d0cf8c35453a7621e7cc30d790df18d7976d1f4d /remoting/host | |
parent | bb8f6fbd89497e2b19200909f45670f007590042 (diff) | |
download | chromium_src-db26f9aac63be5f7041fc835813c70f86525d6d7.zip chromium_src-db26f9aac63be5f7041fc835813c70f86525d6d7.tar.gz chromium_src-db26f9aac63be5f7041fc835813c70f86525d6d7.tar.bz2 |
Fixed multi-monitor mouse coordinates.
BUG=359334
Review URL: https://codereview.chromium.org/243943002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264905 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host')
-rw-r--r-- | remoting/host/input_injector_mac.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/remoting/host/input_injector_mac.cc b/remoting/host/input_injector_mac.cc index 30ea580..c5e8700 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( |