- Timestamp:
- Jun 26, 2009 4:43:16 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/MouseImpl.cpp
r19654 r20988 301 301 * Send the absolute mouse position to the VMM device. 302 302 */ 303 int vrc = mParent->getVMMDev()->getVMMDevPort() 304 ->pfnSetAbsoluteMouse(mParent->getVMMDev()->getVMMDevPort(), 305 mouseXAbs, mouseYAbs); 306 ComAssertRCRet (vrc, E_FAIL); 303 int vrc = 0; 304 if ((mLastAbsX != mouseXAbs) || (mLastAbsY != mouseYAbs)) 305 { 306 vrc = mParent->getVMMDev()->getVMMDevPort() 307 ->pfnSetAbsoluteMouse(mParent->getVMMDev()->getVMMDevPort(), 308 mouseXAbs, mouseYAbs); 309 ComAssertRCRet (vrc, E_FAIL); 310 } 307 311 308 312 // Check if the guest actually wants absolute mouse positions.
Note:
See TracChangeset
for help on using the changeset viewer.