[mutter/wip/garnacho/virtual-input-device: 74/94] ClutterVirtualInputDeviceEvdev: Forward motion events



commit 96222fd2f0027df8fa14d8b0ffe54f64c1d40186
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Wed Jun 22 17:52:43 2016 +0800

    ClutterVirtualInputDeviceEvdev: Forward motion events

 .../evdev/clutter-virtual-input-device-evdev.c     |   16 ++++++++++++++++
 1 files changed, 16 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 895a408..65bae2d 100644
--- a/clutter/clutter/evdev/clutter-virtual-input-device-evdev.c
+++ b/clutter/clutter/evdev/clutter-virtual-input-device-evdev.c
@@ -62,6 +62,14 @@ clutter_virtual_input_device_evdev_notify_relative_motion (ClutterVirtualInputDe
                                                            double                     dx,
                                                            double                     dy)
 {
+  ClutterVirtualInputDeviceEvdev *virtual_evdev =
+    CLUTTER_VIRTUAL_INPUT_DEVICE_EVDEV (virtual_device);
+
+  clutter_seat_evdev_notify_relative_motion (virtual_evdev->seat,
+                                             virtual_evdev->device,
+                                             time_us,
+                                             dx, dy,
+                                             dx, dy);
 }
 
 static void
@@ -70,6 +78,14 @@ clutter_virtual_input_device_evdev_notify_absolute_motion (ClutterVirtualInputDe
                                                            double                     x,
                                                            double                     y)
 {
+  ClutterVirtualInputDeviceEvdev *virtual_evdev =
+    CLUTTER_VIRTUAL_INPUT_DEVICE_EVDEV (virtual_device);
+
+  clutter_seat_evdev_notify_absolute_motion (virtual_evdev->seat,
+                                             virtual_evdev->device,
+                                             time_us,
+                                             x, y,
+                                             NULL);
 }
 
 static void


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