From: Araki K. <j00...@ip...> - 2001-12-12 06:33:29
|
Hi, Subject: [Mlterm-dev-en] Some problem of Big5 cut&paste and XIM(mlterm-cvs) From: "Edward G.J. Lee" <ed...@ms...> Message-ID: <200...@da...> Date: Wed, 12 Dec 2001 11:47:06 +0800 > when I use Tcl/Tk APP will not do the cut&paste from/to mlterm > even English text. I don't still check this problem , sorry. I'll do it later. > Another thing is about XIM server(I use XCIN). There sre > two problems: > 1. xcin start before mlterm: > > if I kill xcin under mlterm then mlterm will hang. It > seems that mlterm's XSetICValues() xcin cannot return it, > so mlterm hang there. what I think happens is as follows. If you kill xcin on mlterm , the destroy event happens while you are inputting something from keyboard(that is , while mlterm is receiving keyboard events with *XmbLookupString*) , so mlterm hangs up in XmbLookupString before receiving the destroy event. I tried it on rxvt and the same problem happened. I think this problem cannot be avoided unless XLookupString is always used in receiving us ascii text. But if XLookupString is used like that , it will cause another problem and I don't want to do it. If you want to kill xcin on mlterm , please do it after selecting "unused" as Input Method on mlconfig or pressing keys assigned for XIM_CLOSE (, which stop using XIM). > 2. no xcin start before mlterm: > > I start xcin after mlterm, but mlterm cannot connect > to xcin even has the proper XMODIFIERS. It seems mlterm > detect no XIM server then forget it even start XIM server > after mlterm start. Tung-Han Hsieh had found same problem > from rxvt-2.7.8. This is my mistake. Please test an attached patch. -- kiken j00...@ip... diff -u -r -N mlterm/src/ml_xic.c mlterm.new/src/ml_xic.c --- mlterm/src/ml_xic.c Mon Dec 10 12:31:35 2001 +++ mlterm.new/src/ml_xic.c Wed Dec 12 15:05:06 2001 @@ -289,9 +289,7 @@ if( win->xic) { - /* already activated */ - - return 0 ; + ml_xic_deactivate( win) ; } if( strcmp( xim_name , "unused") == 0) |