aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/w32term.c')
-rw-r--r--src/w32term.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/w32term.c b/src/w32term.c
index 617492e189f..d3174c65bf0 100644
--- a/src/w32term.c
+++ b/src/w32term.c
@@ -151,6 +151,9 @@ HWND w32_system_caret_hwnd;
151int w32_system_caret_height; 151int w32_system_caret_height;
152int w32_system_caret_x; 152int w32_system_caret_x;
153int w32_system_caret_y; 153int w32_system_caret_y;
154struct window *w32_system_caret_window;
155int w32_system_caret_hdr_height;
156int w32_system_caret_mode_height;
154DWORD dwWindowsThreadId = 0; 157DWORD dwWindowsThreadId = 0;
155HANDLE hWindowsThread = NULL; 158HANDLE hWindowsThread = NULL;
156DWORD dwMainThreadId = 0; 159DWORD dwMainThreadId = 0;
@@ -5328,6 +5331,9 @@ w32_draw_window_cursor (struct window *w, struct glyph_row *glyph_row,
5328 w32_system_caret_y 5331 w32_system_caret_y
5329 = (WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y) 5332 = (WINDOW_TO_FRAME_PIXEL_Y (w, w->phys_cursor.y)
5330 + glyph_row->ascent - w->phys_cursor_ascent); 5333 + glyph_row->ascent - w->phys_cursor_ascent);
5334 w32_system_caret_window = w;
5335 w32_system_caret_hdr_height = WINDOW_HEADER_LINE_HEIGHT (w);
5336 w32_system_caret_mode_height = WINDOW_MODE_LINE_HEIGHT (w);
5331 5337
5332 PostMessage (hwnd, WM_IME_STARTCOMPOSITION, 0, 0); 5338 PostMessage (hwnd, WM_IME_STARTCOMPOSITION, 0, 0);
5333 5339