From: Rob Bradford <[email protected]>

e->code is in the same range for ABS_ and for REL_. As the code currently
stands and for the current values in Linux's input.h there is no risk of a
problem. However just in case it would be wise to break after evaluating the
relative events.

Signed-off-by: Rob Bradford <[email protected]>
---
 src/evdev.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/evdev.c b/src/evdev.c
index 8848736..cc5af91 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -195,6 +195,7 @@ is_motion_event(struct input_event *e)
                case REL_Y:
                        return 1;
                }
+               break;
        case EV_ABS:
                switch (e->code) {
                case ABS_X:
-- 
1.7.11.2

_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to