Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Pump IBus events after X events.
  • Loading branch information
baines committed May 27, 2015
1 parent 46f758a commit ae6555d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -1305,17 +1305,17 @@ X11_PumpEvents(_THIS)
}
}

/* Keep processing pending events */
while (X11_Pending(data->display)) {
X11_DispatchEvent(_this);
}

#ifdef SDL_USE_IBUS
if(SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE){
SDL_IBus_PumpEvents();
}
#endif

/* Keep processing pending events */
while (X11_Pending(data->display)) {
X11_DispatchEvent(_this);
}

/* FIXME: Only need to do this when there are pending focus changes */
X11_HandleFocusChanges(_this);
}
Expand Down

0 comments on commit ae6555d

Please sign in to comment.