Changeset 22095 in vbox for trunk/src/VBox/Additions/x11
- Timestamp:
- Aug 7, 2009 9:56:35 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50844
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/vboxmouse/VBoxUtils.c
r21227 r22095 47 47 { 48 48 int rc; 49 uint32_t fFeatures = 0; 49 50 if (gDeviceOpenFailed) 50 51 return 1; … … 57 58 } 58 59 59 rc = VbglR3SetMouseStatus(VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE /* | VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR */); 60 rc = VbglR3GetMouseStatus(&fFeatures, NULL, NULL); 61 if (RT_SUCCESS(rc)) 62 rc = VbglR3SetMouseStatus( fFeatures 63 | VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE); 60 64 if (RT_FAILURE(rc)) 61 65 { … … 105 109 if (gDeviceOpenFailed) 106 110 return VINF_SUCCESS; 107 int rc = VbglR3SetMouseStatus(0); 111 uint32_t fFeatures; 112 int rc = VbglR3GetMouseStatus(&fFeatures, NULL, NULL); 113 if (RT_SUCCESS(rc)) 114 rc = VbglR3SetMouseStatus( fFeatures 115 & ~VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE); 108 116 VbglR3Term(); 109 117 return rc;
Note:
See TracChangeset
for help on using the changeset viewer.