summaryrefslogtreecommitdiffstats
path: root/remoting/host
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
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')
-rw-r--r--remoting/host/chromoting_host.cc4
-rw-r--r--remoting/host/client_session.cc2
2 files changed, 3 insertions, 3 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;
}
diff --git a/remoting/host/client_session.cc b/remoting/host/client_session.cc
index 8718429..b3aa20e 100644
--- a/remoting/host/client_session.cc
+++ b/remoting/host/client_session.cc
@@ -13,7 +13,7 @@
// "echoes" detected by the local input detector. The value should be large
// enough to cope with the fact that multiple events might be injected before
// any echoes are detected.
-static const unsigned int kNumRemoteMousePositions = 10;
+static const unsigned int kNumRemoteMousePositions = 50;
// The number of milliseconds for which to block remote input when local input
// is received.