… | |
… | |
1300 | DT_INT, call_data->chg_first, |
1300 | DT_INT, call_data->chg_first, |
1301 | DT_INT, call_data->chg_length, |
1301 | DT_INT, call_data->chg_length, |
1302 | DT_END)); |
1302 | DT_END)); |
1303 | } |
1303 | } |
1304 | |
1304 | |
|
|
1305 | #if 0 |
1305 | static void |
1306 | static void |
1306 | xim_preedit_caret (XIC ic, XPointer client_data, XIMPreeditCaretCallbackStruct *call_data) |
1307 | xim_preedit_caret (XIC ic, XPointer client_data, XIMPreeditCaretCallbackStruct *call_data) |
1307 | { |
1308 | { |
1308 | ((rxvt_term *)client_data)->make_current (); |
1309 | ((rxvt_term *)client_data)->make_current (); |
1309 | HOOK_INVOKE (((rxvt_term *)client_data, HOOK_XIM_PREEDIT_CARET, |
1310 | HOOK_INVOKE (((rxvt_term *)client_data, HOOK_XIM_PREEDIT_CARET, |
1310 | DT_INT, call_data->position, |
1311 | DT_INT, call_data->position, |
1311 | DT_INT, call_data->direction, |
1312 | DT_INT, call_data->direction, |
1312 | DT_INT, call_data->style, |
1313 | DT_INT, call_data->style, |
1313 | DT_END)); |
1314 | DT_END)); |
1314 | } |
1315 | } |
|
|
1316 | #endif |
1315 | |
1317 | |
1316 | #endif |
1318 | #endif |
1317 | |
1319 | |
1318 | /* |
1320 | /* |
1319 | * Try to open a XIM with the current modifiers, then see if we can |
1321 | * Try to open a XIM with the current modifiers, then see if we can |
… | |
… | |
1482 | else if (input_style & XIMPreeditCallbacks) |
1484 | else if (input_style & XIMPreeditCallbacks) |
1483 | { |
1485 | { |
1484 | xcb[0].client_data = (XPointer)this; xcb[0].callback = (XIMProc)xim_preedit_start; |
1486 | xcb[0].client_data = (XPointer)this; xcb[0].callback = (XIMProc)xim_preedit_start; |
1485 | xcb[1].client_data = (XPointer)this; xcb[1].callback = (XIMProc)xim_preedit_done; |
1487 | xcb[1].client_data = (XPointer)this; xcb[1].callback = (XIMProc)xim_preedit_done; |
1486 | xcb[2].client_data = (XPointer)this; xcb[2].callback = (XIMProc)xim_preedit_draw; |
1488 | xcb[2].client_data = (XPointer)this; xcb[2].callback = (XIMProc)xim_preedit_draw; |
|
|
1489 | #if 0 |
1487 | xcb[3].client_data = (XPointer)this; xcb[3].callback = (XIMProc)xim_preedit_caret; |
1490 | xcb[3].client_data = (XPointer)this; xcb[3].callback = (XIMProc)xim_preedit_caret; |
|
|
1491 | #endif |
1488 | |
1492 | |
1489 | preedit_attr = XVaCreateNestedList (0, |
1493 | preedit_attr = XVaCreateNestedList (0, |
1490 | XNPreeditStartCallback, &xcb[0], |
1494 | XNPreeditStartCallback, &xcb[0], |
1491 | XNPreeditDoneCallback , &xcb[1], |
1495 | XNPreeditDoneCallback , &xcb[1], |
1492 | XNPreeditDrawCallback , &xcb[2], |
1496 | XNPreeditDrawCallback , &xcb[2], |
|
|
1497 | #if 0 |
1493 | XNPreeditCaretCallback, &xcb[3], |
1498 | XNPreeditCaretCallback, &xcb[3], |
|
|
1499 | #endif |
1494 | NULL); |
1500 | NULL); |
1495 | } |
1501 | } |
1496 | |
1502 | |
1497 | Input_Context = XCreateIC (xim, |
1503 | Input_Context = XCreateIC (xim, |
1498 | XNInputStyle, input_style, |
1504 | XNInputStyle, input_style, |