x11rdp: port input code to X11R7.7