Mercurial > emacs
diff src/w32term.c @ 104030:91b945d54645
* w32fns.c (w32_wnd_proc) [WM_IME_STARTCOMPOSITION]: Position
IME window at cursor (Bug#2570).
(w32_wnd_proc) [WM_IME_CHAR]: Release context when finished.
(globals_of_w32fns): Dynamically load functions required above.
* w32term.c (w32_draw_window_cursor): Send message to reposition
any IME window.
| author | Jason Rumney <jasonr@gnu.org> |
|---|---|
| date | Wed, 22 Jul 2009 16:03:39 +0000 |
| parents | 7bad97f82eb6 |
| children | 68dd71358159 |
line wrap: on
line diff
--- a/src/w32term.c Wed Jul 22 03:07:18 2009 +0000 +++ b/src/w32term.c Wed Jul 22 16:03:39 2009 +0000 @@ -32,6 +32,7 @@ #include <ctype.h> #include <errno.h> #include <sys/stat.h> +#include <imm.h> #include "charset.h" #include "character.h" @@ -5128,6 +5129,8 @@ = (WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y) + glyph_row->ascent - w->phys_cursor_ascent); + PostMessage (hwnd, WM_IME_STARTCOMPOSITION, 0, 0); + /* If the size of the active cursor changed, destroy the old system caret. */ if (w32_system_caret_hwnd
