mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
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
This commit is contained in:
parent
5705d08b5d
commit
213e6e4a16
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user