Aric Stewart aric@codeweavers.com wrote:
The problem is that there is no XK keycode for just Shift, Control or Menu so X11DRV_MapVirtualKeyEx maps them to Shift_L, etc. As a result the string XKeysymToString returns is a string with a _L or _R at the end, even if the "don't care" bit is set.
try4: Formatting changes suggested by Dmitry Timoshkov
How abot the casts? And spacing is still not consitent.