device-manager-core-x11: Create core input devices as x11
The core input devices when XInput doesn't work were being created as generic ClutterInputDevices instead of ClutterInputDeviceX11s. This meant the keycode_to_evdev virtual wouldn't work. Reviewed-by: Emmanuele Bassi <ebassi@linux.intel.com>
This commit is contained in:
parent
13e3f9e5f1
commit
a0d3b01aa9
@ -589,7 +589,7 @@ default_device:
|
|||||||
* cover core devices
|
* cover core devices
|
||||||
*/
|
*/
|
||||||
manager_x11->core_pointer =
|
manager_x11->core_pointer =
|
||||||
g_object_new (CLUTTER_TYPE_INPUT_DEVICE,
|
g_object_new (CLUTTER_TYPE_INPUT_DEVICE_X11,
|
||||||
"name", "Core Pointer",
|
"name", "Core Pointer",
|
||||||
"has-cursor", TRUE,
|
"has-cursor", TRUE,
|
||||||
"device-type", CLUTTER_POINTER_DEVICE,
|
"device-type", CLUTTER_POINTER_DEVICE,
|
||||||
@ -601,7 +601,7 @@ default_device:
|
|||||||
CLUTTER_NOTE (BACKEND, "Added core pointer device");
|
CLUTTER_NOTE (BACKEND, "Added core pointer device");
|
||||||
|
|
||||||
manager_x11->core_keyboard =
|
manager_x11->core_keyboard =
|
||||||
g_object_new (CLUTTER_TYPE_INPUT_DEVICE,
|
g_object_new (CLUTTER_TYPE_INPUT_DEVICE_X11,
|
||||||
"name", "Core Keyboard",
|
"name", "Core Keyboard",
|
||||||
"has-cursor", FALSE,
|
"has-cursor", FALSE,
|
||||||
"device-type", CLUTTER_KEYBOARD_DEVICE,
|
"device-type", CLUTTER_KEYBOARD_DEVICE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user