Bug 34182

Summary: enter key pressed forever when setting a keyboard floating with xinput
Product: xorg Reporter: Mark <dokter>
Component: Server/Input/CoreAssignee: Peter Hutterer <peter.hutterer>
Status: RESOLVED FIXED QA Contact: Xorg Project Team <xorg-team>
Severity: minor    
Priority: medium    
Version: unspecified   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Mark 2011-02-11 08:30:29 UTC
When you remove your keyboard from the virtual core keyboard master device with "xinput float 7" for example, the behaviour you get is like you never released the enter key.
My wild guess is, that the enter key press is the last event, that is routed through the vck and since there is no release event it looks like you pressed that key forever. 
The behaviour stops when you press a key on another attached keyboard.
For convenience, the xinput utility could wait for a key release (if that's what caused the problem).
Comment 1 Peter Hutterer 2011-02-24 15:58:31 UTC
verified, thanks
Comment 2 Peter Hutterer 2011-02-24 17:27:21 UTC
http://patchwork.freedesktop.org/patch/4246/
Comment 3 Peter Hutterer 2011-05-03 17:11:44 UTC
closing this one as fixed with the commit below, though this patch created Bug 36146, please look there for the follow up patch.

commit 9d23459415b84606ee4f38bb2d19054c432c8552
Author: Peter Hutterer <peter.hutterer@who-t.net>
Date:   Fri Feb 25 11:08:19 2011 +1000

    dix: release all buttons and keys before reattaching a device (#34182)
Comment 4 Jeremy Huddleston Sequoia 2011-06-20 00:34:04 UTC
in server-1.10-branch and will be in 1.10.3 RC2

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.