Closed tmarkov closed 3 years ago
whoah, that's definitely a bug in the xf86-input-libinput driver, we should handle touch cancel correctly. Please submit a PR to the libinput driver gitlab instance and I'll get it merged.
FTR, the xorg libinput driver != libinput itself, it's a wrapper around libinput to map it to the server API. This is a bug in that layer, using a Wayland compositor that uses libinput directly (gnome shell, kwin, sway, ...) shouldn't see the same bug.
@whot Thank you for chiming in! I've submitted a MR on gitlab, with my patch that is linked above. Hope that I didn't miss anything important.
Sometimes, iptsd detects a touch and forwards it to the input driver, only to later find out that it was a palm touch instead. Then it is marked as a palm here,
This works well on wayland, however on xorg (with libinput) it causes the touch to never be lifted, and all subsequent touches get ignored. Restarting iptsd fixes he issue.
A workaround would be to lift it instead of marking it as palm:
However this prevents apps from undoing the touch.
Alternatively, this patch by @StollD to libinput fixes the issue: https://gist.github.com/StollD/05b6955c3fe0ad9e6394f27e5ddff1b7
@whot Does this patch make sense from libinput point of view, or is there a reason palms don't get lifted on xorg?