repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: e311c2a7d8203e0a2fc6d52a8606001421370b01:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit e311c2a7d8203e0a2fc6d52a8606001421370b01
Author: Marc Lehmann 
Date:   Wed Jan 25 01:08:38 2006 +0000

    *** empty log message ***

diff --git a/src/main.C b/src/main.C
index 609e53e70a9b1d4738d48dde81fbaa4cf5e1b8f3..
index ..048f9ecf24771a4c25f230e789ceff7b94810b66 100644
--- 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-----