x11/device-manager-xi2: Fix slave to master association
A slave is associated to a master device, not the other way around. https://bugzilla.gnome.org/show_bug.cgi?id=692971
This commit is contained in:
parent
069abd1122
commit
c0469601c7
@ -1345,8 +1345,8 @@ relate_slaves (gpointer key,
|
|||||||
ClutterDeviceManagerXI2 *manager_xi2 = data;
|
ClutterDeviceManagerXI2 *manager_xi2 = data;
|
||||||
ClutterInputDevice *master, *slave;
|
ClutterInputDevice *master, *slave;
|
||||||
|
|
||||||
master = g_hash_table_lookup (manager_xi2->devices_by_id, key);
|
slave = g_hash_table_lookup (manager_xi2->devices_by_id, key);
|
||||||
slave = g_hash_table_lookup (manager_xi2->devices_by_id, value);
|
master = g_hash_table_lookup (manager_xi2->devices_by_id, value);
|
||||||
|
|
||||||
_clutter_input_device_set_associated_device (slave, master);
|
_clutter_input_device_set_associated_device (slave, master);
|
||||||
_clutter_input_device_add_slave (master, slave);
|
_clutter_input_device_add_slave (master, slave);
|
||||||
|
Loading…
Reference in New Issue
Block a user