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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Changelog:
    Dmitry Timoshkov <dmitry@codeweavers.com>
    Print X display and locale of X Input Method in the debug log.

--- cvs/hq/wine/dlls/x11drv/x11drv_main.c	Tue Jun 24 03:18:14 2003
+++ wine/dlls/x11drv/x11drv_main.c	Tue Aug 12 03:14:26 2003
@@ -449,7 +449,12 @@
     }
     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





[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux