msctf: Release focused DocumentMgr on Deactivate and make sure to do a OnSetFocus Sink.

This commit is contained in:
Aric Stewart 2009-04-10 11:26:51 -05:00 committed by Alexandre Julliard
parent 01a00b53fb
commit af860c1a85
1 changed files with 8 additions and 0 deletions

View File

@ -196,6 +196,14 @@ static HRESULT WINAPI ThreadMgr_fnDeactivate( ITfThreadMgr* iface)
{
ThreadMgr *This = (ThreadMgr *)iface;
FIXME("STUB:(%p)\n",This);
if (This->focus)
{
ITfThreadMgrEventSink_OnSetFocus((ITfThreadMgrEventSink*)&This->ThreadMgrEventSinkVtbl, 0, This->focus);
ITfDocumentMgr_Release(This->focus);
This->focus = 0;
}
return E_NOTIMPL;
}