PR: 7494 "By this patch, the problems about Filter Event handle of XIM are solved."
Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp> PR: ports/6028 (part of)