]> git.eshelyaron.com Git - emacs.git/commitdiff
Set IC preedit area on ConfigureNotify
authorPo Lu <luangruo@yahoo.com>
Mon, 24 Jan 2022 00:46:39 +0000 (08:46 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 24 Jan 2022 00:46:39 +0000 (08:46 +0800)
* src/xterm.c (handle_one_xevent): Set the preedit spot when a
ConfigureNotify event is received.

src/xterm.c

index 2a4ea883bc1bc20c379dac72e75e357e4fcafca7..bf606b1aa42d7c958eea32400e0059c3d25e0f03 100644 (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
 
        }