From fe4bc5ab25891c572b8a58fa2f1468993845f110 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 23 Aug 2014 11:00:16 -0700 Subject: [PATCH] Fixed Linux build --- src/core/linux/SDL_ibus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/linux/SDL_ibus.c b/src/core/linux/SDL_ibus.c index 519bf020b..3fc082e4f 100644 --- a/src/core/linux/SDL_ibus.c +++ b/src/core/linux/SDL_ibus.c @@ -590,7 +590,8 @@ SDL_IBus_ProcessKeyEvent(Uint32 keysym, Uint32 keycode) void SDL_IBus_UpdateTextRect(SDL_Rect *rect) { - SDL_Window *focused_win = SDL_GetKeyboardFocus(); + SDL_Window *focused_win; + SDL_SysWMinfo info; int x = 0, y = 0; SDL_DBusContext *dbus; @@ -598,13 +599,12 @@ SDL_IBus_UpdateTextRect(SDL_Rect *rect) SDL_memcpy(&ibus_cursor_rect, rect, sizeof(ibus_cursor_rect)); } + focused_win = SDL_GetKeyboardFocus(); if (!focused_win) { return; } - SDL_SysWMinfo info; SDL_VERSION(&info.version); - if (!SDL_GetWindowWMInfo(focused_win, &info)) { return; }