From 6cea4d1fdbdcfd6810bfea70ba58d7a45f2d2384 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 24 Jan 2022 08:46:39 +0800 Subject: [PATCH] Set IC preedit area on ConfigureNotify * src/xterm.c (handle_one_xevent): Set the preedit spot when a ConfigureNotify event is received. --- src/xterm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 2a4ea883bc1..bf606b1aa42 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -9964,6 +9964,12 @@ handle_one_xevent (struct x_display_info *dpyinfo, #ifdef HAVE_X_I18N if (FRAME_XIC (f) && (FRAME_XIC_STYLE (f) & XIMStatusArea)) xic_set_statusarea (f); + + if (f) + { + struct window *w = XWINDOW (f->selected_window); + xic_set_preeditarea (w, w->cursor.x, w->cursor.y); + } #endif } -- 2.39.2