The ioctl for reading mouse parameters was missing the structure size. This would cause it to randomly fail and exit the loop, resulting in the mouse going unresponsive.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41894 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2011-06-03 22:12:06 +00:00
parent 894a3ebe89
commit 308e87fc11

View File

@ -393,7 +393,8 @@ MouseDevice::_ControlThread()
nextTransferTime += kTransferDelay;
#endif
if (ioctl(fDevice, MS_READ, &movements) != B_OK) {
if (ioctl(fDevice, MS_READ, &movements, sizeof(movements)) != B_OK) {
LOG_ERR("Mouse device exiting, %s\n", strerror(errno));
_ControlThreadCleanup();
// TOAST!
return;