Bug 34182 - enter key pressed forever when setting a keyboard floating with xinput
Summary: enter key pressed forever when setting a keyboard floating with xinput
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/Core (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: medium minor
Assignee: Peter Hutterer
QA Contact: Xorg Project Team
Depends on:
Reported: 2011-02-11 08:30 UTC by Mark
Modified: 2011-10-16 17:52 UTC (History)
0 users

See Also:
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
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.