Merge revision 1126 changes:

- Windows: cefclient: Fix delivery of mouse up events with offscreen rendering example (issue #902).

git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1364@1127 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt 2013-03-05 18:10:08 +00:00
parent 78e92cf244
commit a86fc1de13
1 changed files with 2 additions and 2 deletions

View File

@ -493,8 +493,8 @@ LRESULT CALLBACK OSRWindow::WndProc(HWND hWnd, UINT message,
int x = GET_X_LPARAM(lParam);
int y = GET_Y_LPARAM(lParam);
CefBrowserHost::MouseButtonType btnType =
(message == WM_LBUTTONDOWN ? MBT_LEFT : (
message == WM_RBUTTONDOWN ? MBT_RIGHT : MBT_MIDDLE));
(message == WM_LBUTTONUP ? MBT_LEFT : (
message == WM_RBUTTONUP ? MBT_RIGHT : MBT_MIDDLE));
if (browser.get()) {
CefMouseEvent mouse_event;
mouse_event.x = x;