Navigation Menu

Skip to content

Commit

Permalink
Fixed Linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Aug 23, 2014
1 parent 059579e commit fe4bc5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/linux/SDL_ibus.c
Expand Up @@ -590,21 +590,21 @@ 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;

if (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;
}
Expand Down

0 comments on commit fe4bc5a

Please sign in to comment.