Description of problem:
In Xephyr with focus follows mouse caps-lock is sometimes "sticky" and can not be simply turned off. Same for num-lock. And it can be quite tricky to turn it off. The problem is the key-up event is never delivered to the client.
The question is should it? To that I answer at least in case of Caps and Num lock resounding yes, as these are global state keys and there is also a precedent in the spice-client Bug 679467 (I know this is not a court-room case but the rule is IMHO appropriate here).
But at least it works for modifier keys (Shift, Alt and Control) so one does not (often) kill application in selinux sandbox with `w` or `q` keys but some applications (e.g. Firefox with or without vimperator plugin) are rather sensitive to caps-lock and one can close whole window instead of a tab and other nasty things.
Looks like for me the best option it will be to disable the caps-lock all together and rely on vim's gU :-)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. setup focus follows mouse
2. start xterm in Xephyr
(/usr/bin/Xephyr -terminate -screen 800x600 -dpi 96 -displayfd 5 5>&1 2>/dev/null) | while read D; do DISPLAY=:$D xterm & done
1. focus into Xephyr window
2. press Caps-lock down
3. move mouse out of Xephyr window so it loses focus
4. release Caps-lock
5. caps-lock in Xephyr window remains in effect regardless how many times the key is pressed.
To turn caps-lock off repeat steps 1-4.
Things get more complicated once caps-lock is turned on (both down and up) outside of window, cursor is moved into the window, caps-lock turned off (both down and up) and the caps-lock in the client will remain in effect.
- caps-lock in Xephyr window remains in effect regardless how many times the key is pressed
- caps-lock should be turned off (at least when pressed and released in the client)
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.