Commit 8532cc56 authored by Alexandre Julliard's avatar Alexandre Julliard

winex11.drv: Hack to work around an Xlib bug when XInitThreads is used.

parent 4c4d4386
......@@ -514,7 +514,14 @@ struct x11drv_thread_data *x11drv_init_thread_data(void)
if (use_xkb)
{
use_xkb = XkbUseExtension( data->display, NULL, NULL );
if (use_xkb) XkbSetDetectableAutoRepeat( data->display, True, NULL );
if (use_xkb)
{
/* Hack: dummy call to XkbKeysymToModifiers to force initialisation of Xkb internals */
/* This works around an Xlib bug where it tries to get the display lock */
/* twice during XFilterEvents if Xkb hasn't been initialised yet. */
XkbKeysymToModifiers( data->display, 'A' );
XkbSetDetectableAutoRepeat( data->display, True, NULL );
}
}
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment