[clutter/deprecate-default-stage: 14/14] evdev: do not associate device with stage
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/deprecate-default-stage: 14/14] evdev: do not associate device with stage
- Date: Thu, 10 Nov 2011 15:53:16 +0000 (UTC)
commit 213e6e4a1606945b1e2bbb93289da31aea5edcbe
Author: Lionel Landwerlin <lionel g landwerlin intel com>
Date: Thu Nov 10 15:41:41 2011 +0000
evdev: do not associate device with stage
Their might not be any stage at that time, so this avoids to create a
default one.
Signed-off-by: Emmanuele Bassi <ebassi linux intel com>
https://bugzilla.gnome.org/show_bug.cgi?id=651718
clutter/evdev/clutter-device-manager-evdev.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/clutter/evdev/clutter-device-manager-evdev.c b/clutter/evdev/clutter-device-manager-evdev.c
index 80c0698..caa1355 100644
--- a/clutter/evdev/clutter-device-manager-evdev.c
+++ b/clutter/evdev/clutter-device-manager-evdev.c
@@ -540,7 +540,6 @@ evdev_add_device (ClutterDeviceManagerEvdev *manager_evdev,
ClutterDeviceManager *manager = (ClutterDeviceManager *) manager_evdev;
ClutterInputDeviceType type = CLUTTER_EXTENSION_DEVICE;
ClutterInputDevice *device;
- ClutterActor *stage;
const gchar *device_file, *sysfs_path, *device_name;
device_file = g_udev_device_get_device_file (udev_device);
@@ -583,10 +582,6 @@ evdev_add_device (ClutterDeviceManagerEvdev *manager_evdev,
"enabled", TRUE,
NULL);
- /* Always associate the device to the default stage */
- stage = clutter_stage_get_default ();
- _clutter_input_device_set_stage (device, CLUTTER_STAGE (stage));
-
_clutter_device_manager_add_device (manager, device);
CLUTTER_NOTE (EVENT, "Added device %s, type %d, sysfs %s",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]