Skip to content
Commit c36b58e8 authored by Igor Mammedov's avatar Igor Mammedov Committed by Dmitry Torokhov
Browse files

Input: xen-kbdfront - fix mouse getting stuck after save/restore



Mouse gets "stuck" after restore of PV guest but buttons are in working
condition.

If driver has been configured for ABS coordinates at start it will get
XENKBD_TYPE_POS events and then suddenly after restore it'll start getting
XENKBD_TYPE_MOTION events, that will be dropped later and they won't get
into user-space.

Regression was introduced by hunk 5 and 6 of
5ea5254aa0ad269cfbd2875c973ef25ab5b5e9db
("Input: xen-kbdfront - advertise either absolute or relative
coordinates").

Driver on restore should ask xen for request-abs-pointer again if it is
available. So restore parts that did it before 5ea5254.

Acked-by: default avatarOlaf Hering <olaf@aepfle.de>
Signed-off-by: default avatarIgor Mammedov <imammedo@redhat.com>
[v1: Expanded the commit description]
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent 80b4895a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment