mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-21 14:40:49 +01:00
Windows: Fix reporting of WM_MOUSELEAVE coordinates by the cefclient OSR example (issue #1133).
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/2062@1892 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
3b4132d940
commit
cfe6a64635
@ -628,9 +628,14 @@ LRESULT CALLBACK OSRWindow::WndProc(HWND hWnd, UINT message,
|
||||
mouseTracking = false;
|
||||
}
|
||||
if (browser.get()) {
|
||||
// Determine the cursor position in screen coordinates.
|
||||
POINT p;
|
||||
::GetCursorPos(&p);
|
||||
::ScreenToClient(hWnd, &p);
|
||||
|
||||
CefMouseEvent mouse_event;
|
||||
mouse_event.x = 0;
|
||||
mouse_event.y = 0;
|
||||
mouse_event.x = p.x;
|
||||
mouse_event.y = p.y;
|
||||
mouse_event.modifiers = GetCefMouseModifiers(wParam);
|
||||
browser->SendMouseMoveEvent(mouse_event, true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user