On Sun, Feb 06, 2000 at 01:37:38AM +0800, Anthony Wong wrote: > 我也遇到同样的问题,应该是 IMdkit 的问题。韩国的 input server 'ami' > 所用的是一个改良了的 IMdkit。可参考 > > ftp://ftp.debian.org/debian/dists/potato/main/source/x11/ami_1.0.1.orig.tar.gz > > 但我还未能把它结合到 xcin 里...希望大家也一起试, over-the-spot > 的感觉应该会是不错的 :>
谢谢您提供这个消息 :-)) 我已大略看过这个套件了,它的主程式是 用 gtk 写成的,而它的 Ximd/ 底下的东东几乎 99% 以上与 IMdkit 相 同,除了加入一个 monitor_client_win_death callback 以外,我猜这 是用来监测如果 XIM client 关闭后应做的动作,这在 xcin 中已有其 他的做法,但也许它的做法比较好 :-)) OK, 言归正传,我 compile 并执行 ami 之后, rxvt-2.7.2 在 OverTheSpot 之下可以正常 create IC, 也就是 ami 是可以 work 的。于是,我尝试将 xcin 的 IMdkit 用 ami 的 Ximd 替换掉 (of course, after some hacks), 结果 link Ximd 之后的 xcin 还是无法使用 OverTheSpot, 因此我猜问题可 能在于 xcin 的主程式没有针对 OverTheSpot 完整实作。但我比对了 xcin 与 ami 的主程式,除了几个 handler xcin 没有处理外,实在看不出有其他 问题。我想,等我明天参考 Peter Hung 兄给我的 patch, 以及 ami 的主程 式,将 OverTheSpot 完整实作之后,再看看结果如何。 我也比对过了 IMdkit 以及 Ximd 的程式码,结果找到了几个 IMdkit 的 bug :-)) 多半是一些 memory leaks, 还有几个是在处理 callback protocol 时漏了一 些东东。这些都不是属于 Root input_style 的 bug, 因此在目前情况下使用 xcin 应该是不会碰到的 :-)) 不过如果真的直接拿 Ximd 来用在 xcin 仍然 有问题,例如如果 XIM client 结束时, xcin 也会跟着 crash。至于为何会 如此?等有时间在查吧。 有兴趣的朋友可以去试试 ami, 因为它可以说目前可以找到与 xcin 最像的 XIM server (我是指处理 XIM protocol 的核心部分), 可以藉此机会比较二 者的程式码 :-)) 想试的朋友也可以在这里 download: ftp://xcin.linux.org.tw/pub/xcin/misc/ami_1.0.1.orig.tar.gz T.H.Hsieh -- [ This mail was originally sent to [email protected] ] [ and was forwarded to this list automatically. Big5 characters are ] [ also converted to GB at the same time, Please note that there may ] [ be errors during the conversion as this is not done by a human! ]

