bug 281184 : When WXG (a Japanese IME) is used, the composition window stays on even after the composition ends : patch by Masayuki Nakano, r=timeless, sr=bz, a=cailon

This commit is contained in:
jshin%mailaps.org 2005-02-15 17:33:11 +00:00
Родитель ca814b390d
Коммит 753fdc8284
1 изменённых файлов: 0 добавлений и 12 удалений

Просмотреть файл

@ -5841,12 +5841,6 @@ nsWindow::HandleTextEvent(HIMC hIMEContext,PRBool aCheckAttr)
NS_IMM_SETCANDIDATEWINDOW(hIMEContext, &candForm);
COMPOSITIONFORM compForm;
compForm.dwStyle = CFS_POINT;
compForm.ptCurrentPos.x = event.theReply.mCursorPosition.x;
compForm.ptCurrentPos.y = event.theReply.mCursorPosition.y;
NS_IMM_SETCOMPOSITIONWINDOW(hIMEContext, &compForm);
// somehow the "Intellegent ABC IME" in Simplified Chinese
// window listen to the caret position to decide where to put the
// candidate window
@ -5918,12 +5912,6 @@ nsWindow::HandleStartComposition(HIMC hIMEContext)
NS_IMM_SETCANDIDATEWINDOW(hIMEContext, &candForm);
COMPOSITIONFORM compForm;
compForm.dwStyle = CFS_POINT;
compForm.ptCurrentPos.x = event.theReply.mCursorPosition.x + IME_X_OFFSET;
compForm.ptCurrentPos.y = event.theReply.mCursorPosition.y + IME_Y_OFFSET;
NS_IMM_SETCOMPOSITIONWINDOW(hIMEContext, &compForm);
sIMECompCharPos = (RECT*)PR_MALLOC(IME_MAX_CHAR_POS*sizeof(RECT));
if (sIMECompCharPos) {
memset(sIMECompCharPos, -1, sizeof(RECT)*IME_MAX_CHAR_POS);