mirror of
https://github.com/yawut/SDL.git
synced 2026-08-05 01:57:54 -05:00
Fixed XIM crash when locale is set to something not supported by X11.
This commit is contained in:
parent
561c6ca3d6
commit
a0e7b130e5
|
|
@ -220,7 +220,7 @@ SetupWindowData(_THIS, SDL_Window * window, Window w, BOOL created)
|
|||
data->window = window;
|
||||
data->xwindow = w;
|
||||
#ifdef X_HAVE_UTF8_STRING
|
||||
if (SDL_X11_HAVE_UTF8) {
|
||||
if (SDL_X11_HAVE_UTF8 && videodata->im) {
|
||||
data->ic =
|
||||
pXCreateIC(videodata->im, XNClientWindow, w, XNFocusWindow, w,
|
||||
XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user