touchpad: rename tp_touch->millis to tp_touch->time
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 21 Jun 2017 01:02:48 +0000 (11:02 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 21 Jun 2017 09:07:11 +0000 (19:07 +1000)
This is in µs and hasn't been in ms for a long time.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
src/evdev-mt-touchpad-buttons.c
src/evdev-mt-touchpad-edge-scroll.c
src/evdev-mt-touchpad.c
src/evdev-mt-touchpad.h

index 895cf0ea126e70e012fe57f7ce1cc32e12ed32ef..c437ddf267c0297671bf496283ebbcd6a8d7c5ae 100644 (file)
@@ -147,14 +147,14 @@ static void
 tp_button_set_enter_timer(struct tp_dispatch *tp, struct tp_touch *t)
 {
        libinput_timer_set(&t->button.timer,
-                          t->millis + DEFAULT_BUTTON_ENTER_TIMEOUT);
+                          t->time + DEFAULT_BUTTON_ENTER_TIMEOUT);
 }
 
 static void
 tp_button_set_leave_timer(struct tp_dispatch *tp, struct tp_touch *t)
 {
        libinput_timer_set(&t->button.timer,
-                          t->millis + DEFAULT_BUTTON_LEAVE_TIMEOUT);
+                          t->time + DEFAULT_BUTTON_LEAVE_TIMEOUT);
 }
 
 /*
index 9f6660ca7d44f6c54176994d97526676650512e6..6174b73828ebd76c3ed0b53ae77eefe7c4b72fdb 100644 (file)
@@ -103,7 +103,7 @@ tp_edge_scroll_set_timer(struct tp_dispatch *tp,
                return;
 
        libinput_timer_set(&t->scroll.timer,
-                          t->millis + DEFAULT_SCROLL_LOCK_TIMEOUT);
+                          t->time + DEFAULT_SCROLL_LOCK_TIMEOUT);
 }
 
 static void
index eeb1a1b3bcfb0b477cc2d84faac14b321fd8a981..9f2dd8bf05ca316c1dd6c1cfd15e13e78b098dac 100644 (file)
@@ -217,7 +217,7 @@ tp_new_touch(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time)
        t->was_down = false;
        t->state = TOUCH_HOVERING;
        t->pinned.is_pinned = false;
-       t->millis = time;
+       t->time = time;
        tp->queued |= TOUCHPAD_EVENT_MOTION;
 }
 
@@ -226,7 +226,7 @@ tp_begin_touch(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time)
 {
        t->dirty = true;
        t->state = TOUCH_BEGIN;
-       t->millis = time;
+       t->time = time;
        t->was_down = true;
        tp->nfingers_down++;
        t->palm.time = time;
@@ -259,7 +259,7 @@ tp_end_touch(struct tp_dispatch *tp, struct tp_touch *t, uint64_t time)
        t->palm.state = PALM_NONE;
        t->state = TOUCH_END;
        t->pinned.is_pinned = false;
-       t->millis = time;
+       t->time = time;
        t->palm.time = 0;
        assert(tp->nfingers_down >= 1);
        tp->nfingers_down--;
@@ -314,7 +314,7 @@ tp_process_absolute(struct tp_dispatch *tp,
                                                  e->code,
                                                  e->value);
                t->point.x = e->value;
-               t->millis = time;
+               t->time = time;
                t->dirty = true;
                tp->queued |= TOUCHPAD_EVENT_MOTION;
                break;
@@ -323,7 +323,7 @@ tp_process_absolute(struct tp_dispatch *tp,
                                                  e->code,
                                                  e->value);
                t->point.y = e->value;
-               t->millis = time;
+               t->time = time;
                t->dirty = true;
                tp->queued |= TOUCHPAD_EVENT_MOTION;
                break;
@@ -362,7 +362,7 @@ tp_process_absolute_st(struct tp_dispatch *tp,
                                                  e->code,
                                                  e->value);
                t->point.x = e->value;
-               t->millis = time;
+               t->time = time;
                t->dirty = true;
                tp->queued |= TOUCHPAD_EVENT_MOTION;
                break;
@@ -371,7 +371,7 @@ tp_process_absolute_st(struct tp_dispatch *tp,
                                                  e->code,
                                                  e->value);
                t->point.y = e->value;
-               t->millis = time;
+               t->time = time;
                t->dirty = true;
                tp->queued |= TOUCHPAD_EVENT_MOTION;
                break;
index ef0171d40ec2680fc10ce7315b7eb6331bbd20a3..2873c0146146c9ceedab42f00f7ebfab20cff50e 100644 (file)
@@ -144,7 +144,7 @@ struct tp_touch {
        bool has_ended;                         /* TRACKING_ID == -1 */
        bool dirty;
        struct device_coords point;
-       uint64_t millis;
+       uint64_t time;
        int pressure;
        bool is_tool_palm; /* MT_TOOL_PALM */