OSDN Git Service

inputflinger: fix relative mouse movement
authorChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 21 Feb 2020 07:52:13 +0000 (15:52 +0800)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Fri, 21 Feb 2020 07:52:13 +0000 (15:52 +0800)
commit826c57fa0c8dab02d0403cf4e981dd74cc64dcff
tree4bb4a3b8519ed444355914eee17e1564d97e4dcd
parentba57426e9fbe5a83acbef854414b3e06830835e4
inputflinger: fix relative mouse movement

Since commit 78f97b326 ("Support pointer capture in InputReader") the
logic to determine whether mouse input is relative was changed.
However, commit bf8d48c17 was forward ported from nougat-x86. It doesn't
consider that.

Fixes: bf8d48c17 ("inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer")
Reported-and-tested-by: MrARM Slack <mrarm.slack@gmail.com>
services/inputflinger/InputReader.cpp