imm32: Examine whether the fOpen value differs with its old value.

This commit is contained in:
ByeongSik Jeon 2008-04-23 19:05:23 +09:00 committed by Alexandre Julliard
parent 4b77bb4ae2
commit 9a89e4d68c
1 changed files with 8 additions and 2 deletions

View File

@ -1824,8 +1824,14 @@ BOOL WINAPI ImmSetOpenStatus(HIMC hIMC, BOOL fOpen)
IMM_GetThreadData()->hwndDefault = data->imeWnd;
}
data->IMC.fOpen = fOpen;
return ImmNotifyIME(hIMC,NI_CONTEXTUPDATED,0,IMC_SETOPENSTATUS);
if (!fOpen != !data->IMC.fOpen)
{
data->IMC.fOpen = fOpen;
ImmNotifyIME( hIMC, NI_CONTEXTUPDATED, 0, IMC_SETOPENSTATUS);
ImmInternalSendIMENotify(data, IMN_SETSENTENCEMODE, 0);
}
return TRUE;
}
/***********************************************************************