On Sat, Jul 17, 2010 at 10:31:47PM +0200, [email protected] 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
signature.asc
Description: Digital signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
