~m11g5w-3-5lmmq9/spice-vdi/trunk

Viewing all changes in revision 638.

  • Committer: Frediano Ziglio
  • Author(s): Jeremy White
  • Date: 2019-04-06 07:09:31 UTC
  • Revision ID: git-v1:922ec516beaae0c0735bbd46d470908f243e3605
Correct a long standing led state bug in XSpice.

The CtrlProc for our keyboard driver incorrectly mapped
the device private to a SpiceKbd* intead of to a InputInfoPtr.

That resulted in led state being written into the driver name
for our driver structure, instead of into the led state.

That, in turn, led to a cool bug where if you pressed caps lock,
the two second sync timer in the spice server would cause it to
attempt to correct the state by pressing caps lock to get the
states to match.  Since the states will never match, the caps
lock effectively cycles on and off every two seconds.

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Acked-by: Victor Toso <victortoso@redhat.com>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: