imm32: Remember to unset the hwnd for a context when that hwnd is associated with a different context.
This commit is contained in:
parent
7668241015
commit
63d2d041d9
|
@ -383,6 +383,13 @@ HIMC WINAPI ImmAssociateContext(HWND hWnd, HIMC hIMC)
|
||||||
else
|
else
|
||||||
SetPropW(hWnd,szwWineIMCProperty,(HANDLE)hIMC);
|
SetPropW(hWnd,szwWineIMCProperty,(HANDLE)hIMC);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (old)
|
||||||
|
{
|
||||||
|
InputContextData *old_data = (InputContextData*)old;
|
||||||
|
if (old_data->IMC.hWnd == hWnd)
|
||||||
|
old_data->IMC.hWnd = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!hIMC)
|
if (!hIMC)
|
||||||
|
|
Loading…
Reference in New Issue