Changeset 38892 in vbox for trunk/src/VBox
- Timestamp:
- Sep 28, 2011 8:47:43 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r38856 r38892 2049 2049 2050 2050 /** 2051 * Sets the mouse status features for this session and updates them globally. 2051 * Sets the mouse status features for this session and updates them 2052 * globally. We aim to ensure that if several threads call this in 2053 * parallel the most recent status will always end up being set. 2052 2054 * 2053 2055 * @returns VBox status code. … … 2063 2065 uint32_t fNewDevExtStatus = 0; 2064 2066 int rc; 2067 /* Exit early if nothing has changed - hack to work around the 2068 * Windows Additions not using the common code. */ 2069 bool fNoAction; 2065 2070 2066 2071 RTSpinlockAcquireNoInts(pDevExt->SessionSpinlock, &Tmp); … … 2080 2085 } 2081 2086 pSession->fMouseStatus = fFeatures & VMMDEV_MOUSE_GUEST_MASK; 2087 fNoAction = (pDevExt->fMouseStatus == fNewDevExtStatus); 2082 2088 pDevExt->fMouseStatus = fNewDevExtStatus; 2083 2089 RTSpinlockReleaseNoInts(pDevExt->SessionSpinlock, &Tmp); 2090 if (fNoAction) 2091 return VINF_SUCCESS; 2084 2092 do 2085 2093 {
Note:
See TracChangeset
for help on using the changeset viewer.