*** empty log message ***
authorroot <root>
Wed, 25 Jan 2006 01:08:38 +0000 (01:08 +0000)
committerroot <root>
Wed, 25 Jan 2006 01:08:38 +0000 (01:08 +0000)
src/main.C

index 609e53e70a9b1d4738d48dde81fbaa4cf5e1b8f3..048f9ecf24771a4c25f230e789ceff7b94810b66 100644 (file)
@@ -1213,7 +1213,7 @@ rxvt_term::IMSendSpot ()
 
   if (!Input_Context
       || !focus
-      || !(input_style & XIMPreeditPosition))
+      || !(input_style & (XIMPreeditPosition | XIMPreeditCallbacks)))
     return;
 
   im_set_position (nspot);
@@ -1483,6 +1483,8 @@ foundpet:
     }
   else if (input_style & XIMPreeditCallbacks)
     {
+      im_set_position (spot);
+
       xcb[0].client_data = (XPointer)this; xcb[0].callback = (XIMProc)xim_preedit_start;
       xcb[1].client_data = (XPointer)this; xcb[1].callback = (XIMProc)xim_preedit_done;
       xcb[2].client_data = (XPointer)this; xcb[2].callback = (XIMProc)xim_preedit_draw;
@@ -1491,6 +1493,7 @@ foundpet:
 #endif
 
       preedit_attr = XVaCreateNestedList (0,
+                                          XNSpotLocation, &spot,
                                           XNPreeditStartCallback, &xcb[0],
                                           XNPreeditDoneCallback , &xcb[1],
                                           XNPreeditDrawCallback , &xcb[2],