PR: 7494 "By this patch, the problems about Filter Event handle of XIM are solved."
Submitted by: Hidekazu Kuroki <hidekazu@cs.titech.ac.jp>