keymap and Xsync

Daniel Stone daniel at fooishbar.org
Mon Jul 19 08:33:46 PDT 2010


On Sat, Jul 17, 2010 at 10:31:47PM +0200, viollet.benoit at free.fr wrote:
> The following code:
> 
>   locale(LC_ALL,"");
>   ...
>   keysym = XKeycodeToKeysym (dpy, keycode,0);
>   std::cout << (int) keycode << " " << (int) keysym << std::endl;
>   XSync (dpy, False);
>   keysym = XKeycodeToKeysym (dpy, keycode,0);
>   std::cout << (int) keycode << " " << (int) keysym << std::endl;
> 
> gives
> 24 97
> 24 113
> 
> So, Xsync changes the keymap from "fr" to "us". But when I add at the beginning: system("setxkbmap fr"), it works.
> 24 97
> 24 97
> 
> What can I do ?

Do you have a small, self-contained, reproducible test case? Also, are
you running this in a fully-settled session, is it being run on startup,
etc?

Cheers,
Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100719/9928db7e/attachment.pgp>


More information about the xorg-devel mailing list