[clutter/wip/wayland: 34/45] device-manager-core-x11: Create core	input devices as x11
- From: Robert Bragg <rbragg src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [clutter/wip/wayland: 34/45] device-manager-core-x11: Create core	input devices as x11
- Date: Wed, 22 Feb 2012 18:02:34 +0000 (UTC)
commit dabfcee2278466a1a4d8146a4db0274c488b7947
Author: Neil Roberts <neil linux intel com>
Date:   Tue Jan 17 17:29:18 2012 +0000
    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.
 clutter/x11/clutter-device-manager-core-x11.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/x11/clutter-device-manager-core-x11.c b/clutter/x11/clutter-device-manager-core-x11.c
index 7f0af9f..350864c 100644
--- a/clutter/x11/clutter-device-manager-core-x11.c
+++ b/clutter/x11/clutter-device-manager-core-x11.c
@@ -589,7 +589,7 @@ default_device:
    * cover core devices
    */
   manager_x11->core_pointer =
-    g_object_new (CLUTTER_TYPE_INPUT_DEVICE,
+    g_object_new (CLUTTER_TYPE_INPUT_DEVICE_X11,
                   "name", "Core Pointer",
                   "has-cursor", TRUE,
                   "device-type", CLUTTER_POINTER_DEVICE,
@@ -601,7 +601,7 @@ default_device:
   CLUTTER_NOTE (BACKEND, "Added core pointer device");
 
   manager_x11->core_keyboard =
-    g_object_new (CLUTTER_TYPE_INPUT_DEVICE,
+    g_object_new (CLUTTER_TYPE_INPUT_DEVICE_X11,
                   "name", "Core Keyboard",
                   "has-cursor", FALSE,
                   "device-type", CLUTTER_KEYBOARD_DEVICE,
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]