> > > Window2 is poped up from window1.If I open input server(fcitx) in > > > wondow2,then close window2 without closing fcitx,the program will > > > crash.If I close fcitx first ,then close window2,It works well. > > > What happened? > > > > > sorry,it's a little difficult for me to demonstrate the > problem. As you know,we input chinese through Input > Server.press "ctrl + space" will open the input server,and > press"ctrl + space" again will close it. If you didn't > install an input server,you can't get the problem. > "fcitx" is a sort of input server.
Without seeing more of your code, I'd have to guess that the IM is using the XID of window2 as its "parent" and when you close window2, without closing the IM, then it tries to utilise the now-invalid window handle and segfaults. If that is the case, then you will need to (somehow) ascertain if window2 has an IM open on it when it closes, and if it does explicitly close the IM before you allow window2 to be removed. An alternate approach might be to set the IM to use the handle of a window that will not disappear, but then the problem is how to direct the input from the IM to the correct window... SELEX Sensors and Airborne Systems Limited Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 3EL A company registered in England & Wales. Company no. 02426132 ******************************************************************** This email and any attachments are confidential to the intended recipient and may also be privileged. If you are not the intended recipient please delete it from your system and notify the sender. You should not copy it or use it for any purpose nor disclose or distribute its contents to any other person. ******************************************************************** _______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

