Bug 46522

Summary: libXtst's XTestFakeDeviceKeyEvent() isn't useful
Product: xorg Reporter: Bastien Nocera <bugzilla>
Component: Server/Input/CoreAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED MOVED QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium CC: daniel, peter.hutterer
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Bastien Nocera 2012-02-23 06:44:23 UTC
It unfortunately doesn't work as well as XTestFakeKeyEvent() for most uses, as modifiers aren't latched, and it seems that key press and key releases need to happen together to work adequately.

All this seems to be because XKB doesn't apply the xtest mappings:
/usr/share/X11/xkb/compat/xtest
when emitting the key press/releases on behalf of another device.
Comment 1 Bastien Nocera 2012-02-23 06:51:49 UTC
See also:
https://bugzilla.gnome.org/show_bug.cgi?id=670688
Comment 2 Peter Hutterer 2013-02-05 01:30:53 UTC
Can you provide a more specific example here? The three test cases here latch fine, regardless of whether it's standard XTest or the device-specific function.

And in the server code, the device-specific path is largely identical, minus the deviceid handling.

Note that the xtest mapping is for the X test suite, not for the XTest extension.
Comment 3 GitLab Migration User 2018-12-17 17:27:30 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/xorg/xserver/issues/579.

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.