Print X display and locale of X Input Method in the debug log.

This commit is contained in:
Dmitry Timoshkov 2003-08-12 20:33:43 +00:00 committed by Alexandre Julliard
parent 0e27c979a6
commit 6f84b68776
1 changed files with 6 additions and 1 deletions

View File

@ -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