FreeRDP/FreeRDP — pull request #547 by llyzs (2012-04-11 04:42:35+00:00)
Title: x11: release all pressed keys when window is unmapped.

Steps to reproduce the symptom:
Case 1: press ctrl+alt+enter to toggle fullscreen, and release the keys fast enough. Then ctrl+alt will get stuck and will not be released until you press them again.
Case 2: press and hold ctrl, then minimize the window, then release ctrl. When you restore the window, the ctrl key get stuck and will not be released until you press them again.

This patch should fix all known case and prevent any key get stuck on the server-side.