mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-01-04 04:22:41 +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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user