Xi: hierarchy events have a num_info now instead of num_devices.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer
2009-06-08 17:54:05 +10:00
parent 810b74dbbc
commit c5bebca46f
2 changed files with 5 additions and 5 deletions

View File

@@ -786,10 +786,10 @@ static void SDeviceHierarchyEvent(xXIHierarchyEvent *from,
swaps(&to->deviceid, n);
swapl(&to->time, n);
swapl(&to->flags, n);
swaps(&to->num_devices, n);
swaps(&to->num_info, n);
info = (xXIHierarchyInfo*)&to[1];
for (i = 0; i< from->num_devices; i++)
for (i = 0; i< from->num_info; i++)
{
swaps(&info->deviceid, n);
swaps(&info->attachment, n);