backends: Unify touch sequence to slot conversion
We had code in both backends that sort of independently associated sequences to slots. Make both transform slots to sequences the same way, so they may share the implementation convert those back to slots. This helper now lives in Clutter API. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1623>
This commit is contained in:

committed by
Marge Bot

parent
9f5c453fc7
commit
eaa04ecee5
@ -188,7 +188,7 @@ touch_get_info (MetaWaylandTouch *touch,
|
||||
if (!touch_info && create)
|
||||
{
|
||||
touch_info = g_new0 (MetaWaylandTouchInfo, 1);
|
||||
touch_info->slot = meta_event_native_sequence_get_slot (sequence);
|
||||
touch_info->slot = clutter_event_sequence_get_slot (sequence);
|
||||
g_hash_table_insert (touch->touches, sequence, touch_info);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user