diff options
| author | Po Lu | 2022-01-24 08:46:39 +0800 |
|---|---|---|
| committer | Po Lu | 2022-01-24 08:46:39 +0800 |
| commit | 6cea4d1fdbdcfd6810bfea70ba58d7a45f2d2384 (patch) | |
| tree | c93a8a3a79d174b974c22f821a063410f54ca0e1 /src | |
| parent | f4af1137e663f2644a30778a5466909cac26b4b3 (diff) | |
| download | emacs-6cea4d1fdbdcfd6810bfea70ba58d7a45f2d2384.tar.gz emacs-6cea4d1fdbdcfd6810bfea70ba58d7a45f2d2384.zip | |
Set IC preedit area on ConfigureNotify
* src/xterm.c (handle_one_xevent): Set the preedit spot when a
ConfigureNotify event is received.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 6 |
1 files changed, 6 insertions, 0 deletions
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, | |||
| 9964 | #ifdef HAVE_X_I18N | 9964 | #ifdef HAVE_X_I18N |
| 9965 | if (FRAME_XIC (f) && (FRAME_XIC_STYLE (f) & XIMStatusArea)) | 9965 | if (FRAME_XIC (f) && (FRAME_XIC_STYLE (f) & XIMStatusArea)) |
| 9966 | xic_set_statusarea (f); | 9966 | xic_set_statusarea (f); |
| 9967 | |||
| 9968 | if (f) | ||
| 9969 | { | ||
| 9970 | struct window *w = XWINDOW (f->selected_window); | ||
| 9971 | xic_set_preeditarea (w, w->cursor.x, w->cursor.y); | ||
| 9972 | } | ||
| 9967 | #endif | 9973 | #endif |
| 9968 | 9974 | ||
| 9969 | } | 9975 | } |