A typo in clutter-event.c meant that the wrong struct location could be
used for the input device of key events. Also, a typo in the X11 event
code meant that key-presses would come from the pointer device (releases
would still come from the keyboard device).
case CLUTTER_KEY_PRESS:
case CLUTTER_KEY_RELEASE:
- device = event->scroll.device;
+ device = event->key.device;
break;
}
event->key.type = event->type = CLUTTER_KEY_PRESS;
event->key.device =
clutter_device_manager_get_core_device (manager,
- CLUTTER_POINTER_DEVICE);
+ CLUTTER_KEYBOARD_DEVICE);
translate_key_event (backend, event, xevent);