At least the Xsun server on Solaris 9/sparc fails to
set Mode_switch state correctly during active
XGrabKeyboard. Therefore special keysyms are not
handled correctly, i.e. we use Mode_switch+a for
adiaeresis to generate german umlauts with us keyboards.
I searched the web and found a workaround for this
problem in the mozilla sources releasing XKeyboardGrab
while Mode_switch is pressed.
Attached is a diff against rdesktop 1.4.1 using this to
allow rdesktop (or X) to handle Mode_switch correctly.
Patch for broken Mode_swich handling during XGrabKeyboard