Blame SOURCES/0001-clutter-Only-reset-scroll-axes-on-slave-devices.patch
|
|
657d8e |
From 2259241e4e6f03bea4e9d746582a9e6a82b3c755 Mon Sep 17 00:00:00 2001
|
|
|
657d8e |
From: Carlos Garnacho <carlosg@gnome.org>
|
|
|
657d8e |
Date: Wed, 13 Jun 2018 13:48:24 +0200
|
|
|
657d8e |
Subject: [PATCH] clutter: Only reset scroll axes on slave devices
|
|
|
657d8e |
|
|
|
657d8e |
As a plus, unknown source device IDs will just warn instead of crash.
|
|
|
657d8e |
---
|
|
|
657d8e |
clutter/clutter/x11/clutter-device-manager-xi2.c | 3 ++-
|
|
|
657d8e |
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
657d8e |
|
|
|
657d8e |
diff --git a/clutter/clutter/x11/clutter-device-manager-xi2.c b/clutter/clutter/x11/clutter-device-manager-xi2.c
|
|
|
657d8e |
index 297d3acfe..76ef420ed 100644
|
|
|
657d8e |
--- a/clutter/clutter/x11/clutter-device-manager-xi2.c
|
|
|
657d8e |
+++ b/clutter/clutter/x11/clutter-device-manager-xi2.c
|
|
|
657d8e |
@@ -1899,7 +1899,8 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
|
|
|
657d8e |
_clutter_input_device_set_stage (device, NULL);
|
|
|
657d8e |
}
|
|
|
657d8e |
|
|
|
657d8e |
- _clutter_input_device_reset_scroll_info (source_device);
|
|
|
657d8e |
+ if (clutter_input_device_get_device_mode (source_device) == CLUTTER_INPUT_MODE_SLAVE)
|
|
|
657d8e |
+ _clutter_input_device_reset_scroll_info (source_device);
|
|
|
657d8e |
|
|
|
657d8e |
clutter_event_set_device (event, device);
|
|
|
657d8e |
clutter_event_set_source_device (event, source_device);
|
|
|
657d8e |
--
|
|
|
657d8e |
2.21.0
|
|
|
657d8e |
|