touchpad: rename scroll.state to scroll.edge_state
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 18 Dec 2014 00:21:48 +0000 (10:21 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 23 Dec 2014 01:14:39 +0000 (11:14 +1000)
In preparation for a twofinger_state field, to avoid confusion.

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

index 616080faecdd4b9c2bd9c8e2b42340a877fc1f2b..bc6831dde19ae2269f8ccfab4d009ebe9edd6051 100644 (file)
@@ -69,7 +69,7 @@ tp_edge_scroll_set_state(struct tp_dispatch *tp,
 {
        libinput_timer_cancel(&t->scroll.timer);
 
-       t->scroll.state = state;
+       t->scroll.edge_state = state;
 
        switch (state) {
        case EDGE_SCROLL_TOUCH_STATE_NONE:
@@ -207,7 +207,7 @@ tp_edge_scroll_handle_event(struct tp_dispatch *tp,
                            struct tp_touch *t,
                            enum scroll_event event)
 {
-       switch (t->scroll.state) {
+       switch (t->scroll.edge_state) {
        case EDGE_SCROLL_TOUCH_STATE_NONE:
                tp_edge_scroll_handle_none(tp, t, event);
                break;
@@ -374,5 +374,5 @@ tp_edge_scroll_stop_events(struct tp_dispatch *tp, uint64_t time)
 int
 tp_edge_scroll_touch_active(struct tp_dispatch *tp, struct tp_touch *t)
 {
-       return t->scroll.state == EDGE_SCROLL_TOUCH_STATE_AREA;
+       return t->scroll.edge_state == EDGE_SCROLL_TOUCH_STATE_AREA;
 }
index 14502882ec577843e4c84430f39c3b46c1a44caf..e284928001207bcb06d78348b534a166c7dd0143 100644 (file)
@@ -165,7 +165,7 @@ struct tp_touch {
        } tap;
 
        struct {
-               enum tp_edge_scroll_touch_state state;
+               enum tp_edge_scroll_touch_state edge_state;
                uint32_t edge;
                int direction;
                double threshold;