touchpad: drop check for left button areas

No functional changes, anything that's in the top/bottom area but not in the
respective middle/right area is a left button.

Introduced by 13bda5adcb

Fixes coverity complaint about use of uninitialized variable.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2018-08-13 14:23:28 +10:00
parent 24da4ecd85
commit 1668cd5e81

View file

@ -510,7 +510,7 @@ tp_button_handle_state(struct tp_dispatch *tp, uint64_t time)
event = BUTTON_EVENT_IN_BOTTOM_R;
else if (is_inside_bottom_middle_area(tp, t))
event = BUTTON_EVENT_IN_BOTTOM_M;
else if (is_inside_bottom_left_area(tp, t))
else
event = BUTTON_EVENT_IN_BOTTOM_L;
/* In the bottom area we check for movement
@ -521,7 +521,7 @@ tp_button_handle_state(struct tp_dispatch *tp, uint64_t time)
event = BUTTON_EVENT_IN_TOP_R;
else if (is_inside_top_middle_area(tp, t))
event = BUTTON_EVENT_IN_TOP_M;
else if (is_inside_top_left_area(tp, t))
else
event = BUTTON_EVENT_IN_TOP_L;
} else {
event = BUTTON_EVENT_IN_AREA;