mirror of
https://github.com/joel16/SDL2.git
synced 2025-02-17 10:10:20 +00:00
Fixed XIM crash when locale is set to something not supported by X11.
This commit is contained in:
parent
77815e31db
commit
6509d6080b
@ -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…
x
Reference in New Issue
Block a user