Bug 737583 - Fix static placement of Chinese IME window

Call gtk_im_context_set_cursor_location() whenever we draw the text
tool cursor or start a preedit sequence.

(cherry picked from commit 7ee69c3053ef2fa32deb82ca65f54e0f038f5ac6)