Bug 46522 - libXtst's XTestFakeDeviceKeyEvent() isn't useful
Summary: libXtst's XTestFakeDeviceKeyEvent() isn't useful
Status: RESOLVED MOVED
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/Core (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-23 06:44 UTC by Bastien Nocera
Modified: 2018-12-17 17:27 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments

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.