clutter: Only reset scroll axes on slave devices

As a plus, unknown source device IDs will just warn instead of crash.
This commit is contained in:
Carlos Garnacho 2018-06-13 13:48:24 +02:00 committed by Ray Strode
parent e4da08218a
commit 0dccf69cb3

View File

@ -1819,6 +1819,7 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
_clutter_input_device_set_stage (device, NULL);
}
if (clutter_input_device_get_device_mode (source_device) == CLUTTER_INPUT_MODE_SLAVE)
_clutter_input_device_reset_scroll_info (source_device);
clutter_event_set_device (event, device);