diff options
Diffstat (limited to 'driver/multitouch.c')
| -rw-r--r-- | driver/multitouch.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/driver/multitouch.c b/driver/multitouch.c index ee5242f..7233aa2 100644 --- a/driver/multitouch.c +++ b/driver/multitouch.c | |||
| @@ -273,10 +273,12 @@ static void read_input(LocalDevicePtr local) | |||
| 273 | { | 273 | { |
| 274 | struct Gestures gs; | 274 | struct Gestures gs; |
| 275 | struct MTouch *mt = local->private; | 275 | struct MTouch *mt = local->private; |
| 276 | while (read_synchronized_event(mt, local->fd)) { | 276 | const struct input_event *ev; |
| 277 | parse_event(mt); | 277 | while (ev = get_iobuf_event(&mt->buf, local->fd)) { |
| 278 | extract_gestures(&gs, mt); | 278 | if (parse_event(mt, ev)) { |
| 279 | handle_gestures(local, &gs, &mt->caps); | 279 | extract_gestures(&gs, mt); |
| 280 | handle_gestures(local, &gs, &mt->caps); | ||
| 281 | } | ||
| 280 | } | 282 | } |
| 281 | } | 283 | } |
| 282 | 284 | ||
