Fixed Linux build
authorSam Lantinga <slouken@libsdl.org>
Sat, 23 Aug 2014 11:00:16 -0700
changeset 91139887ee47e143
parent 9112 345a7d41dda9
child 9114 515603c105ab
Fixed Linux build
src/core/linux/SDL_ibus.c
     1.1 --- a/src/core/linux/SDL_ibus.c	Sat Aug 23 10:47:50 2014 -0700
     1.2 +++ b/src/core/linux/SDL_ibus.c	Sat Aug 23 11:00:16 2014 -0700
     1.3 @@ -590,7 +590,8 @@
     1.4  void
     1.5  SDL_IBus_UpdateTextRect(SDL_Rect *rect)
     1.6  {
     1.7 -    SDL_Window *focused_win = SDL_GetKeyboardFocus();
     1.8 +    SDL_Window *focused_win;
     1.9 +    SDL_SysWMinfo info;
    1.10      int x = 0, y = 0;
    1.11      SDL_DBusContext *dbus;
    1.12  
    1.13 @@ -598,13 +599,12 @@
    1.14          SDL_memcpy(&ibus_cursor_rect, rect, sizeof(ibus_cursor_rect));
    1.15      }
    1.16  
    1.17 +    focused_win = SDL_GetKeyboardFocus();
    1.18      if (!focused_win) {
    1.19          return;
    1.20      }
    1.21  
    1.22 -    SDL_SysWMinfo info;
    1.23      SDL_VERSION(&info.version);
    1.24 -    
    1.25      if (!SDL_GetWindowWMInfo(focused_win, &info)) {
    1.26          return;
    1.27      }