Commit 1668cd5e authored by Peter Hutterer's avatar Peter Hutterer
Browse files

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 13bda5ad



Fixes coverity complaint about use of uninitialized variable.
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <peter.hutterer@who-t.net>
parent 24da4ecd
Pipeline #3160 passed with stages
in 6 minutes and 23 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment