From b9f6aed51560170e75dd8281a656809f55f33fc1 Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Mon, 7 Apr 2014 16:09:03 +0200 Subject: [PATCH] touchpad: post_button_events: Remove TOUCHPAD_EVENT_BUTTON_PRESS/RELEASE test We already check for old != current everywhere, so this is not needed; And in tp_post_softbutton_buttons we want to do delay button down reporting if we don't have touch info yet in which case this check actually gets in the way. Signed-off-by: Hans de Goede Reviewed-by: Peter Hutterer --- src/evdev-mt-touchpad-buttons.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/evdev-mt-touchpad-buttons.c b/src/evdev-mt-touchpad-buttons.c index c65cd8a3..f278eadc 100644 --- a/src/evdev-mt-touchpad-buttons.c +++ b/src/evdev-mt-touchpad-buttons.c @@ -596,10 +596,6 @@ tp_post_softbutton_buttons(struct tp_dispatch *tp, uint32_t time) int tp_post_button_events(struct tp_dispatch *tp, uint32_t time) { - if ((tp->queued & - (TOUCHPAD_EVENT_BUTTON_PRESS|TOUCHPAD_EVENT_BUTTON_RELEASE)) == 0) - return 0; - if (tp->buttons.is_clickpad) { if (tp->buttons.use_clickfinger) return tp_post_clickfinger_buttons(tp, time);