window: fix crasher because of X11_XSetICFocus.
x11 impliments(X11_XSetICFocus, X11_XUnsetICFocus, X11_XDestroyIC, X11_XCreateIC) are "thread safe". In anbox, they are called by SDL_WaitForEventTimeout, SDL_CreateWindow, SDL_DestroyWindow. But origin anbox code sets them in different thread, and then crashed in a low probability. This commit sets them in the same thread to avoid this crash.
Showing
想要评论请 注册 或 登录