summaryrefslogtreecommitdiffstats
path: root/remoting/host
diff options
context:
space:
mode:
authorlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 00:12:33 +0000
committerlambroslambrou@chromium.org <lambroslambrou@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-19 00:12:33 +0000
commitabc204eb5376f29fd557ec43901a5d9354cb5a69 (patch)
tree388210aa92c8c40cba1f977f169ff338968cf98e /remoting/host
parentd13c08315eb24194ff845fbbe8a801dbb1b680cb (diff)
downloadchromium_src-abc204eb5376f29fd557ec43901a5d9354cb5a69.zip
chromium_src-abc204eb5376f29fd557ec43901a5d9354cb5a69.tar.gz
chromium_src-abc204eb5376f29fd557ec43901a5d9354cb5a69.tar.bz2
Add XFlush calls to fix event injection.
BUG=None TEST=Event injection works for remoting_simple_host Review URL: http://codereview.chromium.org/7029047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@85848 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host')
-rw-r--r--remoting/host/event_executor_linux.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/remoting/host/event_executor_linux.cc b/remoting/host/event_executor_linux.cc
index 04b57f7..2b632c9 100644
--- a/remoting/host/event_executor_linux.cc
+++ b/remoting/host/event_executor_linux.cc
@@ -308,6 +308,7 @@ void EventExecutorLinux::InjectKeyEvent(const KeyEvent* event, Task* done) {
<< " sending keysym: " << keysym
<< " to keycode: " << keycode;
XTestFakeKeyEvent(display_, keycode, event->pressed(), CurrentTime);
+ XFlush(display_);
}
void EventExecutorLinux::InjectMouseEvent(const MouseEvent* event,
@@ -336,6 +337,7 @@ void EventExecutorLinux::InjectMouseEvent(const MouseEvent* event,
XTestFakeMotionEvent(display_, DefaultScreen(display_),
event->x(), event->y(),
CurrentTime);
+ XFlush(display_);
}
if (event->has_button() && event->has_button_down()) {
@@ -351,6 +353,7 @@ void EventExecutorLinux::InjectMouseEvent(const MouseEvent* event,
<< " received, sending down " << button_number;
XTestFakeButtonEvent(display_, button_number, event->button_down(),
CurrentTime);
+ XFlush(display_);
}
if (event->has_wheel_offset_x() && event->has_wheel_offset_y()) {