src/core/linux/SDL_ibus.c
changeset 9098 064ea0b1275c
parent 9097 56d712662a82
child 9107 6485aa2e421c
equal deleted inserted replaced
9097:56d712662a82 9098:064ea0b1275c
   373         }
   373         }
   374         dbus->message_unref(msg);
   374         dbus->message_unref(msg);
   375     }
   375     }
   376 
   376 
   377     if(result){
   377     if(result){
   378         SDL_AddHintCallback(SDL_HINT_IM_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
   378         SDL_AddHintCallback(SDL_HINT_IME_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
   379         
   379         
   380         dbus->bus_add_match(ibus_conn, "type='signal',interface='org.freedesktop.IBus.InputContext'", NULL);
   380         dbus->bus_add_match(ibus_conn, "type='signal',interface='org.freedesktop.IBus.InputContext'", NULL);
   381         dbus->connection_add_filter(ibus_conn, &IBus_MessageFilter, dbus, NULL);
   381         dbus->connection_add_filter(ibus_conn, &IBus_MessageFilter, dbus, NULL);
   382         dbus->connection_flush(ibus_conn);
   382         dbus->connection_flush(ibus_conn);
   383     }
   383     }
   493     if(inotify_fd > 0 && inotify_wd > 0){
   493     if(inotify_fd > 0 && inotify_wd > 0){
   494         inotify_rm_watch(inotify_fd, inotify_wd);
   494         inotify_rm_watch(inotify_fd, inotify_wd);
   495         inotify_wd = -1;
   495         inotify_wd = -1;
   496     }
   496     }
   497     
   497     
   498     SDL_DelHintCallback(SDL_HINT_IM_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
   498     SDL_DelHintCallback(SDL_HINT_IME_INTERNAL_EDITING, &IBus_SetCapabilities, NULL);
   499     
   499     
   500     SDL_memset(&ibus_cursor_rect, 0, sizeof(ibus_cursor_rect));
   500     SDL_memset(&ibus_cursor_rect, 0, sizeof(ibus_cursor_rect));
   501 }
   501 }
   502 
   502 
   503 static void
   503 static void