mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix bug when dragging to a window before mouse events have been detected (issue #262).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@256 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -64,6 +64,17 @@ WebView* WebViewHost::webview() const {
|
||||
return static_cast<WebView*>(webwidget_);
|
||||
}
|
||||
|
||||
bool WebViewHost::WndProc(UINT message, WPARAM wparam, LPARAM lparam) {
|
||||
switch (message) {
|
||||
case WM_SETFOCUS:
|
||||
// Set the current WebViewHost in case a drag action is started before mouse
|
||||
// events are detected for the window.
|
||||
_Context->set_current_webviewhost(this);
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void WebViewHost::MouseEvent(UINT message, WPARAM wparam, LPARAM lparam) {
|
||||
_Context->set_current_webviewhost(this);
|
||||
WebWidgetHost::MouseEvent(message, wparam, lparam);
|
||||
|
Reference in New Issue
Block a user