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 ?
Does it work with the XKB version of the call: keysym = XkbKeycodeToKeysym (dpy, keycode,0, 0); -- Greetings, Dirk _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
