Bug 89753 - XTestFakeInput() resets group #
Summary: XTestFakeInput() resets group #
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/Input/Core (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
Depends on:
Reported: 2015-03-25 03:45 UTC by tomsod-m
Modified: 2018-12-17 17:27 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:

quick dirty hack (703 bytes, text/plain)
2015-03-25 03:45 UTC, tomsod-m
no flags Details

Description tomsod-m 2015-03-25 03:45:46 UTC
Created attachment 114606 [details]
quick dirty hack

Whenever I use xcape or xdotool to simulate a keypress, my layout gets reset to English. Worse, the associated LED doesn't switch and goes out of sync.
I was able to determine that this is because the virtual XTest keyboard has only one group, and so somewhere at the end of XkbHandleActions() group number gets checked for overflow and is reset to zero.
I've attached a quick hack that copies group count from real keyboard to Xtest one, but this is by no means intended to be a permanent solution.

I have xorg-server 1.17.1. Bug 16145 also seems relevant.
Comment 1 GitLab Migration User 2018-12-17 17:27:58 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/589.

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.