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