Set IC preedit area on ConfigureNotify

* src/xterm.c (handle_one_xevent): Set the preedit spot when a
ConfigureNotify event is received.
This commit is contained in:
Po Lu 2022-01-24 08:46:39 +08:00
parent f4af1137e6
commit 6cea4d1fdb

View file

@ -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
}