http://bugs.winehq.org/show_bug.cgi?id=28670
--- Comment #4 from Sebastian Riemer Sebastian.Riemer@gmx.de 2011-10-13 00:53:52 CDT --- (In reply to comment #3)
It's pretty hard (if not impossible) to properly implement keyboard layouts without support from X11, and X11 doesn't help in that area.
This is not what I mean. I only want that it reports a current HKL which is comparable to the way Windows does it to the applications. Internally wine can/should do what ever is best.
The Function "X11DRV_KEYBOARD_DetectLayout" compares the stuff in "main_key_tab" with X11 and sets "kbd_layout" index to the correct place. So, we already have the layout to report to the outside in main_key_tab[kbd_layout].lcid. Probably a reverse mapping is needed from HKL to index in main_key_tab. But that's it.