mirror of
https://github.com/brl/mutter.git
synced 2024-11-28 02:50:41 -05:00
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:
parent
e4da08218a
commit
0dccf69cb3
@ -1819,6 +1819,7 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
|
|||||||
_clutter_input_device_set_stage (device, NULL);
|
_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_input_device_reset_scroll_info (source_device);
|
||||||
|
|
||||||
clutter_event_set_device (event, device);
|
clutter_event_set_device (event, device);
|
||||||
|
Loading…
Reference in New Issue
Block a user