[mutter/wip/garnacho/virtual-input-device: 8/22] ClutterVirtualInputDeviceEvdev: Forward motion events
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/garnacho/virtual-input-device: 8/22] ClutterVirtualInputDeviceEvdev: Forward motion events
- Date: Mon, 11 Jul 2016 17:25:37 +0000 (UTC)
commit 4b73cdd8d61c6900cb58f31935e8661d3dbe8791
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]