aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
authorJason Rumney2009-07-22 16:03:39 +0000
committerJason Rumney2009-07-22 16:03:39 +0000
commitc902b9205ba37aa2db7b9ee855fdca2a13e8076a (patch)
tree8148bf8ada45819a89019da5270455395262b887 /src/w32term.c
parent855b42a23dff7a633d728da3f8f562500472c89f (diff)
downloademacs-c902b9205ba37aa2db7b9ee855fdca2a13e8076a.tar.gz
emacs-c902b9205ba37aa2db7b9ee855fdca2a13e8076a.zip
* 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.
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c
index dde006bbdef..b7642b46891 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -32,6 +32,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
32#include <ctype.h> 32#include <ctype.h>
33#include <errno.h> 33#include <errno.h>
34#include <sys/stat.h> 34#include <sys/stat.h>
35#include <imm.h>
35 36
36#include "charset.h" 37#include "charset.h"
37#include "character.h" 38#include "character.h"
@@ -5128,6 +5129,8 @@ w32_draw_window_cursor (w, glyph_row, x, y, cursor_type, cursor_width, on_p, act
5128 = (WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y) 5129 = (WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y)
5129 + glyph_row->ascent - w->phys_cursor_ascent); 5130 + glyph_row->ascent - w->phys_cursor_ascent);
5130 5131
5132 PostMessage (hwnd, WM_IME_STARTCOMPOSITION, 0, 0);
5133
5131 /* If the size of the active cursor changed, destroy the old 5134 /* If the size of the active cursor changed, destroy the old
5132 system caret. */ 5135 system caret. */
5133 if (w32_system_caret_hwnd 5136 if (w32_system_caret_hwnd