Zhiyi Zhang zzhang@codeweavers.com writes:
This fixes a regression from 22795243b2d21e1a667215f54c3a15634735749c, which calls thread_init_display() and eventually XOpenIM() before X11DRV_InitXIM() is called.
It shouldn't be using thread_init_display() here. This shows a deeper issue: you either have to select for this on all threads, or else in the desktop thread and forward it to the apps. Selecting only in the thread that happens to load the driver is not enough.