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