mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 14:43:20 +00:00
Handle XCreateIC() failing when composition UI is enabled
Fixes https://github.com/libsdl-org/sdl2-compat/issues/328
This commit is contained in:
parent
55484ef023
commit
f0cb78e082
1 changed files with 2 additions and 1 deletions
|
|
@ -660,7 +660,8 @@ void X11_CreateInputContext(SDL_WindowData *data)
|
|||
NULL);
|
||||
X11_XFree(attr);
|
||||
}
|
||||
} else {
|
||||
}
|
||||
if (!data->ic) {
|
||||
data->ic = X11_XCreateIC(videodata->im,
|
||||
XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
|
||||
XNClientWindow, data->xwindow,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue