Skip to content

Commit f0cb78e

Browse files
committed
Handle XCreateIC() failing when composition UI is enabled
Fixes libsdl-org/sdl2-compat#328
1 parent 55484ef commit f0cb78e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/video/x11/SDL_x11keyboard.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,8 @@ void X11_CreateInputContext(SDL_WindowData *data)
660660
NULL);
661661
X11_XFree(attr);
662662
}
663-
} else {
663+
}
664+
if (!data->ic) {
664665
data->ic = X11_XCreateIC(videodata->im,
665666
XNInputStyle, XIMPreeditNothing | XIMStatusNothing,
666667
XNClientWindow, data->xwindow,

0 commit comments

Comments
 (0)