mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-29 18:08:29 +00:00
parent
cf3a337547
commit
26539e79b6
|
@ -203,11 +203,11 @@ init_shm(struct ipc_server *s)
|
||||||
// Setup the tracking origin.
|
// Setup the tracking origin.
|
||||||
idev->tracking_origin_index = (uint32_t)-1;
|
idev->tracking_origin_index = (uint32_t)-1;
|
||||||
for (size_t k = 0; k < IPC_SERVER_NUM_XDEVS; k++) {
|
for (size_t k = 0; k < IPC_SERVER_NUM_XDEVS; k++) {
|
||||||
if (xdev->tracking_origin != s->xtracks[i]) {
|
if (xdev->tracking_origin != s->xtracks[k]) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
idev->tracking_origin_index = i;
|
idev->tracking_origin_index = k;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue