[PATCH vBrownPaperBag] dix: release all buttons and keys before reattaching a device (#34182)

Fernando Carrijo fcarrijo at freedesktop.org
Thu Feb 24 20:31:22 PST 2011


Peter Hutterer <peter.hutterer at who-t.net> wrote:

> Testcase:
>   xinput float <keyboard name>
> 
> results in the keyboard's enter key being repeated as the device is detached
> while the key is still physically down. To avoid this, release all keys and
> buttons before reattaching the device.
> 
> X.Org Bug 34182 <http://bugs.freedesktop.org/show_bug.cgi?id=34182>
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> 
> Changes to v1:
> - Free the event list after usage.
> - two loops require two counters. who would have thought.

Reviewed-by: Fernando Carrijo <fcarrijo at freedesktop.org>


More information about the xorg-devel mailing list