mirror of https://github.com/libsdl-org/SDL.git
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
|
|
@ -660,7 +660,8 @@ void X11_CreateInputContext(SDL_WindowData *data)
|
||||||
NULL);
|
NULL);
|
||||||
X11_XFree(attr);
|
X11_XFree(attr);
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
if (!data->ic) {
|
||||||
data->ic = X11_XCreateIC(videodata->im,
|
data->ic = X11_XCreateIC(videodata->im,
|
||||||
XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
|
XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
|
||||||
XNClientWindow, data->xwindow,
|
XNClientWindow, data->xwindow,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue