Added XFlush calls. Fixed mouse button mapping.
Added XFlush calls.
Fixed mouse button mapping.

BUG=71663
TEST=Connect to a Linux host and try to move the mouse and type text. Both should work as they would at the console.

Review URL: http://codereview.chromium.org/6368052
Patch from Jamie Walch <jamiewalch@chromium.org>.

git-svn-id: dd90618784b6a4b323ea0c23a071cb1c9e6f2ac7@73755 4ff67af0-8c30-449e-8e8b-ad334ec8d88c

wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser,wistoch/meego-app-browser