ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.201 by root, Wed Jan 25 00:57:57 2006 UTC vs.
Revision 1.204 by root, Wed Jan 25 02:53:13 2006 UTC

271 for (int i = 0; i < allocated.size (); i++) 271 for (int i = 0; i < allocated.size (); i++)
272 free (allocated [i]); 272 free (allocated [i]);
273 273
274 free (selection.text); 274 free (selection.text);
275 // TODO: manage env vars in child only(!) 275 // TODO: manage env vars in child only(!)
276 free (env_windowid);
277 free (env_display); 276 free (env_display);
278 free (env_term); 277 free (env_term);
279 free (env_colorfgbg);
280 free (locale); 278 free (locale);
281 free (v_buffer); 279 free (v_buffer);
282 free (incr_buf); 280 free (incr_buf);
283 281
284 delete envv; 282 delete envv;
513 511
514 check_ev.start (); 512 check_ev.start ();
515 513
516 HOOK_INVOKE ((this, HOOK_START, DT_END)); 514 HOOK_INVOKE ((this, HOOK_START, DT_END));
517 515
516#if ENABLE_XEMBED
517 if (rs[Rs_embed])
518 {
519 long info[2] = { 0, XEMBED_MAPPED };
520
521 XChangeProperty (display->display, parent[0], xa[XA_XEMBED_INFO], xa[XA_XEMBED_INFO],
522 32, PropModeReplace, (unsigned char *)&info, 2);
523 }
524#endif
525
518 XMapWindow (disp, vt); 526 XMapWindow (disp, vt);
519 XMapWindow (disp, parent[0]); 527 XMapWindow (disp, parent[0]);
520 528
521 return true; 529 return true;
522} 530}
976{ 984{
977 unsigned int i; 985 unsigned int i;
978 const char *xpmb = "\0"; 986 const char *xpmb = "\0";
979 char fstr[sizeof ("default") + 1], bstr[sizeof ("default") + 1]; 987 char fstr[sizeof ("default") + 1], bstr[sizeof ("default") + 1];
980 988
981 env_colorfgbg = (char *)rxvt_malloc (sizeof ("COLORFGBG=default;default;bg") + 1);
982 strcpy (fstr, "default"); 989 strcpy (fstr, "default");
983 strcpy (bstr, "default"); 990 strcpy (bstr, "default");
984 for (i = Color_Black; i <= Color_White; i++) 991 for (i = Color_Black; i <= Color_White; i++)
985 if (pix_colors[Color_fg] == pix_colors[i]) 992 if (pix_colors[Color_fg] == pix_colors[i])
986 { 993 {
1211 XPoint nspot; 1218 XPoint nspot;
1212 XVaNestedList preedit_attr; 1219 XVaNestedList preedit_attr;
1213 1220
1214 if (!Input_Context 1221 if (!Input_Context
1215 || !focus 1222 || !focus
1216 || !(input_style & XIMPreeditPosition)) 1223 || !(input_style & (XIMPreeditPosition | XIMPreeditCallbacks)))
1217 return; 1224 return;
1218 1225
1219 im_set_position (nspot); 1226 im_set_position (nspot);
1220 1227
1221 if (nspot.x == spot.x && nspot.y == spot.y) 1228 if (nspot.x == spot.x && nspot.y == spot.y)
1481 XNFontSet, fs, 1488 XNFontSet, fs,
1482 NULL); 1489 NULL);
1483 } 1490 }
1484 else if (input_style & XIMPreeditCallbacks) 1491 else if (input_style & XIMPreeditCallbacks)
1485 { 1492 {
1493 im_set_position (spot);
1494
1486 xcb[0].client_data = (XPointer)this; xcb[0].callback = (XIMProc)xim_preedit_start; 1495 xcb[0].client_data = (XPointer)this; xcb[0].callback = (XIMProc)xim_preedit_start;
1487 xcb[1].client_data = (XPointer)this; xcb[1].callback = (XIMProc)xim_preedit_done; 1496 xcb[1].client_data = (XPointer)this; xcb[1].callback = (XIMProc)xim_preedit_done;
1488 xcb[2].client_data = (XPointer)this; xcb[2].callback = (XIMProc)xim_preedit_draw; 1497 xcb[2].client_data = (XPointer)this; xcb[2].callback = (XIMProc)xim_preedit_draw;
1489#if 0 1498#if 0
1490 xcb[3].client_data = (XPointer)this; xcb[3].callback = (XIMProc)xim_preedit_caret; 1499 xcb[3].client_data = (XPointer)this; xcb[3].callback = (XIMProc)xim_preedit_caret;
1491#endif 1500#endif
1492 1501
1493 preedit_attr = XVaCreateNestedList (0, 1502 preedit_attr = XVaCreateNestedList (0,
1503 XNSpotLocation, &spot,
1494 XNPreeditStartCallback, &xcb[0], 1504 XNPreeditStartCallback, &xcb[0],
1495 XNPreeditDoneCallback , &xcb[1], 1505 XNPreeditDoneCallback , &xcb[1],
1496 XNPreeditDrawCallback , &xcb[2], 1506 XNPreeditDrawCallback , &xcb[2],
1497#if 0 1507#if 0
1498 XNPreeditCaretCallback, &xcb[3], 1508 XNPreeditCaretCallback, &xcb[3],

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines