Changeset 54054 in vbox
- Timestamp:
- Jan 30, 2015 6:53:32 PM (10 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 edited
-
Additions/x11/vboxvideo/getmode.c (modified) (1 diff)
-
Main/src-client/MouseImpl.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxvideo/getmode.c
r54040 r54054 252 252 static void updateUseHardwareCursor(VBOXPtr pVBox, uint32_t fCursorCapabilities) 253 253 { 254 bool fGuestCanReportAbsolutePosition = false;255 bool fHostWishesToReportAbsolutePosition = false;256 257 if ( (fCursorCapabilities & VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE)258 #if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 5259 /* As of this version (server 1.6) all major Linux releases260 * are known to handle USB tablets correctly. */261 || (fCursorCapabilities & VMMDEV_MOUSE_HOST_HAS_ABS_DEV)262 #endif263 )264 fGuestCanReportAbsolutePosition = true;265 254 if ( !(fCursorCapabilities & VMMDEV_MOUSE_HOST_CANNOT_HWPOINTER) 266 255 && (fCursorCapabilities & VMMDEV_MOUSE_HOST_WANTS_ABSOLUTE)) 267 fHostWishesToReportAbsolutePosition = true; 268 pVBox->fUseHardwareCursor = fGuestCanReportAbsolutePosition && fHostWishesToReportAbsolutePosition; 256 pVBox->fUseHardwareCursor = true; 257 else 258 pVBox->fUseHardwareCursor = false; 269 259 } 270 260 -
trunk/src/VBox/Main/src-client/MouseImpl.cpp
r53965 r54054 1131 1131 void Mouse::i_sendMouseCapsNotifications(void) 1132 1132 { 1133 bool f AbsDev, fRelDev, fMTDev, fCanAbs, fNeedsHostCursor;1133 bool fRelDev, fMTDev, fCanAbs, fNeedsHostCursor; 1134 1134 1135 1135 { 1136 1136 AutoReadLock aLock(this COMMA_LOCKVAL_SRC_POS); 1137 1137 1138 i_getDeviceCaps( &fAbsDev, &fRelDev, &fMTDev);1138 i_getDeviceCaps(NULL, &fRelDev, &fMTDev); 1139 1139 fCanAbs = i_supportsAbs(); 1140 1140 fNeedsHostCursor = i_guestNeedsHostCursor(); 1141 1141 } 1142 if (fAbsDev)1143 i_updateVMMDevMouseCaps(VMMDEV_MOUSE_HOST_HAS_ABS_DEV, 0);1144 else1145 i_updateVMMDevMouseCaps(0, VMMDEV_MOUSE_HOST_HAS_ABS_DEV);1146 /** @todo this call takes the Console lock in order to update the cached1147 * callback data atomically. However I can't see any sign that the cached1148 * data is ever used again. */1149 1142 mParent->i_onMouseCapabilityChange(fCanAbs, fRelDev, fMTDev, fNeedsHostCursor); 1150 1143 }
Note:
See TracChangeset
for help on using the changeset viewer.

