* src/w32fns.c (w32_wnd_proc): Fix handling of Windows input
methods.  (Bug#11732)
This commit is contained in:
Eli Zaretskii 2018-07-07 14:30:00 +03:00
parent 3a04e151af
commit a427de9c86

View file

@ -4550,13 +4550,13 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
set_ime_composition_window_fn (context, &form); set_ime_composition_window_fn (context, &form);
release_ime_context_fn (hwnd, context); release_ime_context_fn (hwnd, context);
} }
/* We should "goto dflt" here to pass WM_IME_STARTCOMPOSITION to /* FIXME: somehow "goto dflt" here instead of "break" causes
DefWindowProc, so that the composition window will actually popup dialogs, such as the ones shown by File->Open File and
be displayed. But doing so causes trouble with displaying w32-select-font, to become hidden behind their parent frame,
dialog boxes, such as the file selection dialog or font when focus-follows-mouse is in effect. See bug#11732. But
selection dialog. So something else is needed to fix the if we don't "goto dflt", users of IME cannot type text
former without breaking the latter. See bug#11732. */ supported by the input method... */
break; goto dflt;
case WM_IME_ENDCOMPOSITION: case WM_IME_ENDCOMPOSITION:
ignore_ime_char = 0; ignore_ime_char = 0;