Proximity out not fired on Lenovo Yoga 920
I have a Lenovo Yoga 920 with a Lenovo Active Pen. I found a bug which prevents the touchscreen from working when the pen is used. To reproduce it is enough move the pen across the screen fast and then try to use the touchscreen, which doesn't work. To enable the touchscreen again, you need to use the pen and "slowly" leave the screen. This doesn't happen if the pen is moved on the screen slowly and then lifted gently. Looking the debug-events from libinput I can see that when the bug appears, no "proximity out" event is fired (when the pen is lifted gently it is there).
Libinput version: 1.15.5
Operating System: Kubuntu 20.04 LTS with KDE Plasma 5.18
Hardware Info: Lenovo Yoga 920 with Active Pen 2
I have attached the output of libinput record for the pen. pen.txt
Output of udevadm info /sys/class/input/event5 (for the pen events):
P: /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input4/event4 N: input/event4 L: 0 E: DEVPATH=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input4/event4 E: DEVNAME=/dev/input/event4 E: MAJOR=13 E: MINOR=68 E: SUBSYSTEM=input E: USEC_INITIALIZED=3360307 E: ID_INPUT=1 E: ID_INPUT_KEY=1 E: ID_PATH=acpi-LNXVIDEO:00 E: ID_PATH_TAG=acpi-LNXVIDEO_00 E: XKBMODEL=pc105 E: XKBLAYOUT=gb E: BACKSPACE=guess E: LIBINPUT_DEVICE_GROUP=19/0/6:LNXVIDEO/video E: TAGS=:power-switch: