QHimePlatformInputContext::~QHimePlatformInputContext() { if (hime_ch==NULL) return; hime_im_client_close(hime_ch); hime_ch = NULL; }
void send_hime_message(Display *dpy, char *s) { HIME_client_handle *handle = hime_im_client_open(dpy); hime_im_client_message(handle, s); hime_im_client_close(handle); }
QHIMEInputContext::~QHIMEInputContext() { // printf("QHIMEInputContext::~QHIMEInputContext()\n"); hime_im_client_close(hime_ch); hime_ch = NULL; }