Print X display and locale of X Input Method in the debug log.
This commit is contained in:
parent
0e27c979a6
commit
6f84b68776
|
@ -449,7 +449,12 @@ struct x11drv_thread_data *x11drv_init_thread_data(void)
|
|||
}
|
||||
fcntl( ConnectionNumber(data->display), F_SETFD, 1 ); /* set close on exec flag */
|
||||
|
||||
if (!(data->xim = XOpenIM( data->display, NULL, NULL, NULL )))
|
||||
if ((data->xim = XOpenIM( data->display, NULL, NULL, NULL )))
|
||||
{
|
||||
TRACE("X display of IM = %p\n", XDisplayOfIM(data->xim));
|
||||
TRACE("Using %s locale of Input Method\n", XLocaleOfIM(data->xim));
|
||||
}
|
||||
else
|
||||
WARN("Can't open input method\n");
|
||||
|
||||
#ifdef HAVE_XKB
|
||||
|
|
Loading…
Reference in New Issue