Pump IBus events after X events.
authorAlex Baines <alex@abaines.me.uk>
Tue, 26 May 2015 20:22:14 -0400
changeset 9639044cafe15108
parent 9638 a30b6998c1d8
child 9640 d86771e28c51
Pump IBus events after X events.
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Tue May 26 19:54:06 2015 -0400
     1.2 +++ b/src/video/x11/SDL_x11events.c	Tue May 26 20:22:14 2015 -0400
     1.3 @@ -1305,17 +1305,17 @@
     1.4          }
     1.5      }
     1.6  
     1.7 +    /* Keep processing pending events */
     1.8 +    while (X11_Pending(data->display)) {
     1.9 +        X11_DispatchEvent(_this);
    1.10 +    }
    1.11 +
    1.12  #ifdef SDL_USE_IBUS
    1.13      if(SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE){
    1.14          SDL_IBus_PumpEvents();
    1.15      }
    1.16  #endif
    1.17  
    1.18 -    /* Keep processing pending events */
    1.19 -    while (X11_Pending(data->display)) {
    1.20 -        X11_DispatchEvent(_this);
    1.21 -    }
    1.22 -
    1.23      /* FIXME: Only need to do this when there are pending focus changes */
    1.24      X11_HandleFocusChanges(_this);
    1.25  }