device = g_object_new (CLUTTER_TYPE_INPUT_DEVICE_X11,
"id", info->id,
"device-type", device_type,
+ "name", info->name,
NULL);
n_events = _clutter_input_device_x11_construct (device, backend);
* - we do not have the XInput extension
* - we do not have a XInput pointer device
*
- * we register two default devices, one for the pointer
+ * we register two default core devices, one for the pointer
* and one for the keyboard
*/
if (!have_an_xpointer)
d = g_object_new (CLUTTER_TYPE_INPUT_DEVICE_X11,
"id", 0,
+ "name", "Core Pointer",
"device-type", CLUTTER_POINTER_DEVICE,
"is-core", TRUE,
NULL);
d = g_object_new (CLUTTER_TYPE_INPUT_DEVICE_X11,
"id", 1,
+ "name", "Core Keyboard",
"device-type", CLUTTER_KEYBOARD_DEVICE,
"is-core", TRUE,
NULL);
device = _clutter_x11_get_device_for_xid (xbev->deviceid);
CLUTTER_NOTE (EVENT,
- "XINPUT Button press event for %li at %d, %d",
+ "XI ButtonPress for %li ('%s') at %d, %d",
xbev->deviceid,
+ device->device_name,
xbev->x,
xbev->y);
device = _clutter_x11_get_device_for_xid (xbev->deviceid);
- CLUTTER_NOTE (EVENT, "XINPUT Button release event for %li at %d, %d",
+ CLUTTER_NOTE (EVENT, "XI ButtonRelease for %li ('%s') at %d, %d",
xbev->deviceid,
+ device->device_name,
xbev->x,
xbev->y);
device = _clutter_x11_get_device_for_xid (xmev->deviceid);
- CLUTTER_NOTE(EVENT, "XINPUT Motion event for %li at %d, %d",
+ CLUTTER_NOTE(EVENT, "XI Motion for %li ('%s') at %d, %d",
xmev->deviceid,
+ device->device_name,
xmev->x,
xmev->y);