FS#49745 - [xkeyboard-config] grp:toggle broken in 2.18-1

Attached to Project: Arch Linux
Opened by Eugene Diachkin (Ineu) - Friday, 17 June 2016, 06:55 GMT
Last edited by Doug Newgard (Scimmia) - Saturday, 30 July 2016, 18:34 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Andreas Radke (AndyRTR)
Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 4
Private No

Details

Description:
I use the right alt key to toggle between english and russian:

setxkbmap -option -option grp:toggle,grp_led:scroll,compose:menu,ctrl:nocaps "us,ru"

After upgrade of xkeyboard-config from 2.17-2 to 2.18-1 this no longer works: pressing right alt once switches language from english to russian, as expected. But consecutive press doesn't switch back.


Additional info:
xev shows that interpretation of the right alt key is different from 2.17. In 2.17 right alt gives the same key for both english and russian:

KeyRelease event, serial 33, synthetic NO, window 0x2a00001,
root 0xbf, subw 0x0, time 626557, (-367,343), root:(597,426),
state 0x2008, keycode 108 (keysym 0xffea, Alt_R), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

In 2.18 this key is still Alt_R in english, but it has changed to Level3 in russian:

KeyRelease event, serial 34, synthetic NO, window 0x2c00001,
root 0xbf, subw 0x0, time 767811, (-454,839), root:(510,922),
state 0x2080, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), same_screen YES,
XKeysymToKeycode returns keycode: 92
XLookupString gives 0 bytes:
XFilterEvent returns: False

This task depends upon

Closed by  Doug Newgard (Scimmia)
Saturday, 30 July 2016, 18:34 GMT
Reason for closing:  Not a bug
Comment by Andreas Radke (AndyRTR) - Thursday, 28 July 2016, 10:27 GMT
Should be caused by this one and is intended by upstream:

https://cgit.freedesktop.org/xkeyboard-config/commit/?id=85845be3a51f1ae790902b2b4c837d11382f50d8

So it's not a bug. Swich to a different keybinding.
Comment by Eugene Diachkin (Ineu) - Saturday, 30 July 2016, 18:20 GMT
That's unfortunate. Thanks for investigation!

Loading...