Pump IBus events after X events.
authorAlex Baines <alex@abaines.me.uk>
Tue, 26 May 2015 20:22:14 -0400
changeset 9639 044cafe15108
parent 9638 a30b6998c1d8
child 9640 d86771e28c51
Pump IBus events after X events.
src/video/x11/SDL_x11events.c
--- a/src/video/x11/SDL_x11events.c	Tue May 26 19:54:06 2015 -0400
+++ b/src/video/x11/SDL_x11events.c	Tue May 26 20:22:14 2015 -0400
@@ -1305,17 +1305,17 @@
         }
     }
 
+    /* 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);
 }