mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-31 22:42:52 +08:00
Handle XCreateIC() failing when composition UI is enabled
Fixes https://github.com/libsdl-org/sdl2-compat/issues/328
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user