[PATCH libinput 6/8] evdev: drop the button count when releasing keys on remove
Peter Hutterer
peter.hutterer at who-t.net
Tue Aug 19 20:18:54 PDT 2014
We only called this function before device removal, so failing to update the
button state didn't matter. To make this function generic for the upcoming
device suspend/resume, we need to keep track of the button/key count properly.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/evdev.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/evdev.c b/src/evdev.c
index 74632c8..6bbea92 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1042,15 +1042,15 @@ release_pressed_keys(struct evdev_device *device)
case EVDEV_KEY_TYPE_NONE:
break;
case EVDEV_KEY_TYPE_KEY:
- keyboard_notify_key(
- &device->base,
+ evdev_keyboard_notify_key(
+ device,
time,
code,
LIBINPUT_KEY_STATE_RELEASED);
break;
case EVDEV_KEY_TYPE_BUTTON:
- pointer_notify_button(
- &device->base,
+ evdev_pointer_notify_button(
+ device,
time,
code,
LIBINPUT_BUTTON_STATE_RELEASED);
--
1.9.3
More information about the wayland-devel
mailing list