Bug 1337576
| Summary: | Avoid loosing sync and inserting invalid keystrokes for modifiers syncronizations | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Frediano Ziglio <fziglio> |
| Component: | spice-gtk | Assignee: | Default Assignee for SPICE Bugs <rh-spice-bugs> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | SPICE QE bug list <spice-qe-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 7.2 | CC: | astepano, dblechte, fziglio, rbalakri, tpelka |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-11 17:49:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1311804 | ||
|
Description
Frediano Ziglio
2016-05-19 14:06:10 UTC
Running on guest:
$ xev -event keyboard
shows that turning off CapsLock produces next events:
KeyPress event, serial 36, synthetic NO, window 0x2200001,
root 0x276, subw 0x0, time 333796219, (77,68), root:(84,154),
state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x2200001,
root 0x276, subw 0x0, time 333796299, (77,68), root:(84,154),
state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x2200001,
root 0x276, subw 0x0, time 333796299, (77,68), root:(84,154),
state 0x0, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x2200001,
root 0x276, subw 0x0, time 333796299, (77,68), root:(84,154),
state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 36, synthetic NO, window 0x2200001,
root 0x276, subw 0x0, time 333796300, (77,68), root:(84,154),
state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 36, synthetic NO, window 0x2200001,
root 0x276, subw 0x0, time 333796300, (77,68), root:(84,154),
state 0x2, keycode 66 (keysym 0xffe5, Caps_Lock), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
Guest thinks that CapsLock was pressed 3 times instead one.
[root@localhost ~]# xinput test 7 key press 38 <------ press a key release 38 akey press 66 <------- capslock On key release 66 key press 38 <------- press a key release 38 Akey press 66 <-------- capslock Off key release 66 key press 66 key release 66 key press 66 key release 66 Current release implements some workaround that works on most cases. |