[mutter] clutter: Also filter relative tablet tool motions
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] clutter: Also filter relative tablet tool motions
- Date: Mon, 27 Mar 2017 11:02:21 +0000 (UTC)
commit df45c50d0b9431f9ad7f7fe1450cf78dd3801924
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Fri Feb 3 13:10:50 2017 +0800
clutter: Also filter relative tablet tool motions
Pass the relative motion from tablet tools through the same filter
mechanism as used for the relative pointer motions.
https://bugzilla.gnome.org/show_bug.cgi?id=778119
.../clutter/evdev/clutter-device-manager-evdev.c | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
---
diff --git a/clutter/clutter/evdev/clutter-device-manager-evdev.c
b/clutter/clutter/evdev/clutter-device-manager-evdev.c
index e3269b9..c3fdc90 100644
--- a/clutter/clutter/evdev/clutter-device-manager-evdev.c
+++ b/clutter/clutter/evdev/clutter-device-manager-evdev.c
@@ -377,11 +377,23 @@ notify_relative_tool_motion (ClutterInputDevice *input_device,
gfloat dy,
gdouble *axes)
{
+ ClutterInputDeviceEvdev *device_evdev;
ClutterEvent *event;
+ ClutterSeatEvdev *seat;
gfloat x, y;
+ device_evdev = CLUTTER_INPUT_DEVICE_EVDEV (input_device);
+ seat = _clutter_input_device_evdev_get_seat (device_evdev);
x = input_device->current_x + dx;
y = input_device->current_y + dy;
+
+ _clutter_device_manager_evdev_filter_relative_motion (seat->manager_evdev,
+ input_device,
+ seat->pointer_x,
+ seat->pointer_y,
+ &dx,
+ &dy);
+
event = new_absolute_motion_event (input_device, time_us, x, y, axes);
_clutter_evdev_event_set_relative_motion (event, dx, dy, 0, 0);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]