[PATCH libinput 01/13] tablet: drop unnecessary call to reset the changed axes

Peter Hutterer peter.hutterer at who-t.net
Thu Mar 9 11:06:45 UTC 2017


The only code path that leads here would see the changed_axes array zeroed out
in tablet_send_axis_proximity_tip_down_events(), zeroing again is unlikely to
make it more zero.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/evdev-tablet.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/evdev-tablet.c b/src/evdev-tablet.c
index bde6f60..eb56322 100644
--- a/src/evdev-tablet.c
+++ b/src/evdev-tablet.c
@@ -1421,7 +1421,6 @@ tablet_flush(struct tablet_dispatch *tablet,
 	}
 
 	if (tablet_has_status(tablet, TABLET_TOOL_LEAVING_PROXIMITY)) {
-		memset(tablet->changed_axes, 0, sizeof(tablet->changed_axes));
 		tablet_notify_proximity(&device->base,
 					time,
 					tool,
-- 
2.9.3



More information about the wayland-devel mailing list