mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-09 15:40:17 +01:00
cosmetic: rename touch to t for consistency
Everywhere else in the touchpad code we use "t" for the struct tp_touch. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
eeac7106d5
commit
abdd86a4c4
1 changed files with 3 additions and 3 deletions
|
|
@ -45,17 +45,17 @@ enum scroll_event {
|
|||
};
|
||||
|
||||
static uint32_t
|
||||
tp_touch_get_edge(struct tp_dispatch *tp, struct tp_touch *touch)
|
||||
tp_touch_get_edge(struct tp_dispatch *tp, struct tp_touch *t)
|
||||
{
|
||||
uint32_t edge = EDGE_NONE;
|
||||
|
||||
if (tp->scroll.method != LIBINPUT_CONFIG_SCROLL_EDGE)
|
||||
return EDGE_NONE;
|
||||
|
||||
if (touch->x > tp->scroll.right_edge)
|
||||
if (t->x > tp->scroll.right_edge)
|
||||
edge |= EDGE_RIGHT;
|
||||
|
||||
if (touch->y > tp->scroll.bottom_edge)
|
||||
if (t->y > tp->scroll.bottom_edge)
|
||||
edge |= EDGE_BOTTOM;
|
||||
|
||||
return edge;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue