touchpad: post_button_events: Remove TOUCHPAD_EVENT_BUTTON_PRESS/RELEASE test
authorHans de Goede <hdegoede@redhat.com>
Mon, 7 Apr 2014 14:09:03 +0000 (16:09 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 22 May 2014 12:51:41 +0000 (14:51 +0200)
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 <hdegoede@redhat.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-buttons.c

index c65cd8a3b3ad31f92c3638a09a242d0dbbb7d7df..f278eadc91950268beabd4f59a64f092459f2315 100644 (file)
@@ -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);