mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-03-15 03:20:15 +01:00
Fix problem calling CefBrowser::SetFocus() from a non-UI thread (issue #320).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@335 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
561bb6956b
commit
fb2eb5f4b5
@ -234,7 +234,7 @@ void CefBrowserImpl::SetFocus(bool enable)
|
||||
UIT_SetFocus(UIT_GetWebViewHost(), enable);
|
||||
} else {
|
||||
CefThread::PostTask(CefThread::UI, FROM_HERE, NewRunnableMethod(this,
|
||||
&CefBrowserImpl::UIT_SetFocus, UIT_GetWebViewHost(), enable));
|
||||
&CefBrowserImpl::SetFocus, enable));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user