summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2019-01-30 14:10:28 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2019-01-31 15:09:44 +1000
commitc75c00dac388d30f1117a0e6cb74eb834d2fbbb6 (patch)
tree2e0dc447b05d634d1c2fa9a00ee289268dad78f6 /src
parent507441537eb2624dc8d6e0820b77881d6e43199a (diff)
downloadlibinput-c75c00dac388d30f1117a0e6cb74eb834d2fbbb6.tar.gz
fallback: when force-releasing keys, release them directly
An emulated button is recorded as BTN_MIDDLE in the key down mask. If the device is removed in that state, the BTN_MIDDLE event processed triggers an assertion when we try to send out the event twice. Fixes #201 Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev-fallback.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c
index 8d319d18..c064557a 100644
--- a/src/evdev-fallback.c
+++ b/src/evdev-fallback.c
@@ -1095,7 +1095,7 @@ release_pressed_keys(struct fallback_dispatch *dispatch,
LIBINPUT_KEY_STATE_RELEASED);
break;
case KEY_TYPE_BUTTON:
- evdev_pointer_notify_physical_button(
+ evdev_pointer_notify_button(
device,
time,
evdev_to_left_handed(device, code),