Hi all,<br> <br>I want to get keysym with XKeycodeToKeysym method, but I found when I change keyboard layout using setxkbmap –layout <br>in another process, The XKeycodeToKeysym return the old layout keysym.<br> <br>For example:<br>Firstly, I run “setxkbmap –layout us”. I get “z” for XKeycodeToKeysym(disply, 52,0), then I run “setxkbmap –layout de” in <br>another process I also get “z” for XKeycodeToKeysum(display, 52,0). I think it should return “y”. It seems that I omit to update <br>key mapping, but I don’t know how to update it immediately in my code. <br><br><br>Any idea is welcome.<br><br> <br>Thank you in advance.<br> <br>BR,<br> <br>Edward.<br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://email.163.com">网易邮箱,中国第一大电子邮件服务商</a>
</span>