[mutter/wip/garnacho/virtual-input-device: 84/94] clutter/evdev: Set stage on ClutterVirtualInputDevice child device



commit 60e5cac5f7af1ab6aade331e14f14c899335ea03
Author: Carlos Garnacho <carlosg gnome org>
Date:   Mon Jul 11 18:35:11 2016 +0200

    clutter/evdev: Set stage on ClutterVirtualInputDevice child device

 .../evdev/clutter-virtual-input-device-evdev.c     |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter/evdev/clutter-virtual-input-device-evdev.c 
b/clutter/clutter/evdev/clutter-virtual-input-device-evdev.c
index 80b4141..b4925e1 100644
--- a/clutter/clutter/evdev/clutter-virtual-input-device-evdev.c
+++ b/clutter/clutter/evdev/clutter-virtual-input-device-evdev.c
@@ -297,6 +297,7 @@ clutter_virtual_input_device_evdev_constructed (GObject *object)
     CLUTTER_VIRTUAL_INPUT_DEVICE_EVDEV (object);
   ClutterDeviceManager *manager;
   ClutterInputDeviceType device_type;
+  ClutterStage *stage;
 
   manager = clutter_virtual_input_device_get_manager (virtual_device);
   device_type = clutter_virtual_input_device_get_device_type (virtual_device);
@@ -305,6 +306,9 @@ clutter_virtual_input_device_evdev_constructed (GObject *object)
     _clutter_input_device_evdev_new_virtual (manager,
                                              virtual_evdev->seat,
                                              device_type);
+
+  stage = _clutter_device_manager_evdev_get_stage (CLUTTER_DEVICE_MANAGER_EVDEV (manager));
+  _clutter_input_device_set_stage (virtual_evdev->device, stage);
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]