repo: rxvt-unicode-sixel action: commit revision: path_from: revision_from: e311c2a7d8203e0a2fc6d52a8606001421370b01: path_to: revision_to:
commit e311c2a7d8203e0a2fc6d52a8606001421370b01 Author: Marc LehmannDate: Wed Jan 25 01:08:38 2006 +0000 *** empty log message *** diff --git a/src/main.C b/src/main.C
--- a/src/main.C
+++ b/src/main.C
@@ -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],
-----END OF PAGE-----