<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi to all,<br>
<br>
My system : Linux - Ubuntu 14.04<br>
<br>
I am developing an application which relies on Xlib Library and I
try to internationalize it.<br>
<br>
In order to be able to type in accented character, some of them with
dead keys, I use XmbLookupString function and a unique Input
Context.<br>
<br>
Since my app has several X windows, each time one of them gets input
focus, I must set "XNFocusWindow" attribute to it through
XSetICValues function, but it doesn't seem to work:<br>
<br>
If "w" is the X window I want to set as "XNFocusWindow" attribute of
the IC, when I reread this attribute through XGetICValues function,
I don't obtain the same value:<br>
<br>
XSetICValues(ic,XNFocusWindow,w,NULL);<br>
Window winicfocus;<br>
XGetICValues(ic,XNFocusWindow,&winicfocus,NULL);<br>
printf ("Window w id : %ld - IC focus window : %ld\n",w,winicfocus);<br>
<br>
I get:<br>
<br>
Window w id : 77594625 - IC focus window : 0<br>
<br>
To illustrate that, I have joined a little programme you should
compile through this command:<br>
gcc -g -Wall prog-1.cc -o prog-1 -lX11<br>
<br>
<pre class="moz-signature" cols="72">--
Lucien GENTIS
UNIVERSITE DE LORRAINE - ESPE
Centre de Ressources Informatiques
5, Rue Paul Richard
C.O. 3 - MAXEVILLE
54528 LAXOU-CEDEX
Tél. 03 72 74 13 28
Email : <a class="moz-txt-link-abbreviated" href="mailto:lucien.gentis@univ-lorraine.fr">lucien.gentis@univ-lorraine.fr</a></pre>
</body>
</html>