It seems the bug lies somewhere deeper under, probably in xorg.
Turn on NumLock. Switch layout either using the indicator, or by executing "setxkbmap us" or something alike. Try the numpad keys: they work as expected (they insert digits). Press and release any of the modifier keys. Try the numpad keys again: they are in this inconsistent state where 5 is a digits, the rest are cursor keys.
So, a layout switch followed by a modifier press/release leads to this faulty state.
As a special case, if a layout switch is performed by a shortcut key, the modifier press/release happens as part of this key sequence, so NumLock becomes inconsistent immediately.
It seems the bug lies somewhere deeper under, probably in xorg.
Turn on NumLock. Switch layout either using the indicator, or by executing "setxkbmap us" or something alike. Try the numpad keys: they work as expected (they insert digits). Press and release any of the modifier keys. Try the numpad keys again: they are in this inconsistent state where 5 is a digits, the rest are cursor keys.
So, a layout switch followed by a modifier press/release leads to this faulty state.
As a special case, if a layout switch is performed by a shortcut key, the modifier press/release happens as part of this key sequence, so NumLock becomes inconsistent immediately.