summaryrefslogtreecommitdiff
path: root/src/evdev-fallback.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/evdev-fallback.c')
-rw-r--r--src/evdev-fallback.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/evdev-fallback.c b/src/evdev-fallback.c
index ae33d45a..129b214e 100644
--- a/src/evdev-fallback.c
+++ b/src/evdev-fallback.c
@@ -1057,10 +1057,15 @@ release_pressed_keys(struct fallback_dispatch *dispatch,
LIBINPUT_KEY_STATE_RELEASED);
break;
case KEY_TYPE_BUTTON:
+ /* Note: the left-handed configuration is nonzero for
+ * the mapped button (not the physical button), in
+ * get_key_down_count(). We must not map this to left-handed
+ * again, see #881.
+ */
evdev_pointer_notify_button(
device,
time,
- evdev_to_left_handed(device, code),
+ code,
LIBINPUT_BUTTON_STATE_RELEASED);
break;
}