mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-25 08:10:05 +01:00
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:
parent
24da4ecd85
commit
1668cd5e81
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue