mirror of
https://github.com/encounter/SDL.git
synced 2025-12-10 05:57:44 +00:00
Fixed Linux build
This commit is contained in:
@@ -590,7 +590,8 @@ SDL_IBus_ProcessKeyEvent(Uint32 keysym, Uint32 keycode)
|
|||||||
void
|
void
|
||||||
SDL_IBus_UpdateTextRect(SDL_Rect *rect)
|
SDL_IBus_UpdateTextRect(SDL_Rect *rect)
|
||||||
{
|
{
|
||||||
SDL_Window *focused_win = SDL_GetKeyboardFocus();
|
SDL_Window *focused_win;
|
||||||
|
SDL_SysWMinfo info;
|
||||||
int x = 0, y = 0;
|
int x = 0, y = 0;
|
||||||
SDL_DBusContext *dbus;
|
SDL_DBusContext *dbus;
|
||||||
|
|
||||||
@@ -598,13 +599,12 @@ SDL_IBus_UpdateTextRect(SDL_Rect *rect)
|
|||||||
SDL_memcpy(&ibus_cursor_rect, rect, sizeof(ibus_cursor_rect));
|
SDL_memcpy(&ibus_cursor_rect, rect, sizeof(ibus_cursor_rect));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
focused_win = SDL_GetKeyboardFocus();
|
||||||
if (!focused_win) {
|
if (!focused_win) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
SDL_SysWMinfo info;
|
|
||||||
SDL_VERSION(&info.version);
|
SDL_VERSION(&info.version);
|
||||||
|
|
||||||
if (!SDL_GetWindowWMInfo(focused_win, &info)) {
|
if (!SDL_GetWindowWMInfo(focused_win, &info)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user