Skip to content

Commit 02a0d92

Browse files
Oleksandr Andrushchenkodtor
authored andcommitted
Input: xen-kbdfront - do not advertise multi-touch pressure support
Some user-space applications expect multi-touch pressure on contact to be reported if it is advertised in device properties. Otherwise, such applications may treat reports not as actual touches, but hovering. Currently this is only advertised, but not reported. Fix this by not advertising that ABS_MT_PRESSURE is supported. Signed-off-by: Oleksandr Andrushchenko <[email protected]> Signed-off-by: Andrii Chepurnyi <[email protected]> Patchwork-Id: 10140017 Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 8b7e9d9 commit 02a0d92

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/input/misc/xen-kbdfront.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,6 @@ static int xenkbd_probe(struct xenbus_device *dev,
326326
0, width, 0, 0);
327327
input_set_abs_params(mtouch, ABS_MT_POSITION_Y,
328328
0, height, 0, 0);
329-
input_set_abs_params(mtouch, ABS_MT_PRESSURE,
330-
0, 255, 0, 0);
331329

332330
ret = input_mt_init_slots(mtouch, num_cont, INPUT_MT_DIRECT);
333331
if (ret) {

0 commit comments

Comments
 (0)