Zhang, I finally got fcitx working, and saw the problem with my code.NOTE: This patch has been committed.