diff options
Diffstat (limited to 'src/core.c')
| -rw-r--r-- | src/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -369,10 +369,10 @@ void mtdev_put_event(struct mtdev *dev, const struct input_event *ev) | |||
| 369 | struct mtdev_state *state = dev->state; | 369 | struct mtdev_state *state = dev->state; |
| 370 | if (ev->type == EV_SYN && ev->code == SYN_REPORT) { | 370 | if (ev->type == EV_SYN && ev->code == SYN_REPORT) { |
| 371 | bitmask_t head = state->outbuf.head; | 371 | bitmask_t head = state->outbuf.head; |
| 372 | if (dev->state) | 372 | if (dev->caps.has_slot) |
| 373 | convert_A_to_B(state, &dev->caps, ev); | ||
| 374 | else | ||
| 375 | process_typeB(state); | 373 | process_typeB(state); |
| 374 | else | ||
| 375 | convert_A_to_B(state, &dev->caps, ev); | ||
| 376 | if (state->outbuf.head != head) | 376 | if (state->outbuf.head != head) |
| 377 | evbuf_put(&state->outbuf, ev); | 377 | evbuf_put(&state->outbuf, ev); |
| 378 | } else { | 378 | } else { |
