n_events = _clutter_input_device_x11_construct (device, backend);
if (info->use == IsXExtensionPointer && n_events > 0)
- {
- /* mark it as a default */
- device->is_default = TRUE;
-
- have_an_xpointer = TRUE;
- }
+ have_an_xpointer = TRUE;
/* add it to a temporary list; we don't add the device
* straight to the device manager because the XInput
* - we do not have the XInput extension
* - we do not have a XInput pointer device
*
- * we register two default core devices, one for the pointer
+ * we register two default devices, one for the pointer
* and one for the keyboard
*/
if (!have_an_xpointer)
"device-type", CLUTTER_POINTER_DEVICE,
"is-core", TRUE,
NULL);
- d->is_default = TRUE;
CLUTTER_NOTE (BACKEND, "Added core pointer device %d", d->id);
_clutter_device_manager_add_device (manager, d);
backend->core_pointer = d;
"device-type", CLUTTER_KEYBOARD_DEVICE,
"is-core", TRUE,
NULL);
- d->is_default = TRUE;
CLUTTER_NOTE (BACKEND, "Added core keyboard device %d", d->id);
_clutter_device_manager_add_device (manager, d);
backend->core_keyboard = d;