summaryrefslogtreecommitdiffstats
path: root/remoting/host/chromoting_host.cc
diff options
context:
space:
mode:
authorhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-24 22:31:23 +0000
committerhclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-24 22:31:23 +0000
commit9a7aee27726a70084b8203640a03e13caaea6ff2 (patch)
tree39cd31e27254b6306aacf62f272d486bacd4df5a /remoting/host/chromoting_host.cc
parenta4138fa2666749b51a53629f0dddc299ed470a9c (diff)
downloadchromium_src-9a7aee27726a70084b8203640a03e13caaea6ff2.zip
chromium_src-9a7aee27726a70084b8203640a03e13caaea6ff2.tar.gz
chromium_src-9a7aee27726a70084b8203640a03e13caaea6ff2.tar.bz2
Fix the problem of linux host mouse not moving
LocalMouseMoved is called on a wrong thread and the window to track recent mouse movements was too small. This patch changes the call to happen on the network thread and increase the window to 50. BUG=87455 TEST=None Review URL: http://codereview.chromium.org/7263005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90452 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/chromoting_host.cc')
-rw-r--r--remoting/host/chromoting_host.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
index b1ddb5b..962a8cc 100644
--- a/remoting/host/chromoting_host.cc
+++ b/remoting/host/chromoting_host.cc
@@ -346,8 +346,8 @@ void ChromotingHost::set_protocol_config(
}
void ChromotingHost::LocalMouseMoved(const gfx::Point& new_pos) {
- if (MessageLoop::current() != context_->main_message_loop()) {
- context_->main_message_loop()->PostTask(
+ if (MessageLoop::current() != context_->network_message_loop()) {
+ context_->network_message_loop()->PostTask(
FROM_HERE, base::Bind(&ChromotingHost::LocalMouseMoved, this, new_pos));
return;
}