VirtualBox

Changeset 54054 in vbox


Ignore:
Timestamp:
Jan 30, 2015 6:53:32 PM (10 years ago)
Author:
vboxsync
Message:

Main and Additions/x11: remove VMMDEV_MOUSE_HOST_HAS_ABS_DEV (leaving the place-holder in the API of course) as it is not very useful.

Location:
trunk/src/VBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/getmode.c

    r54040 r54054  
    252252static void updateUseHardwareCursor(VBOXPtr pVBox, uint32_t fCursorCapabilities)
    253253{
    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) >= 5
    259             /* As of this version (server 1.6) all major Linux releases
    260              * are known to handle USB tablets correctly. */
    261         || (fCursorCapabilities & VMMDEV_MOUSE_HOST_HAS_ABS_DEV)
    262 #endif
    263         )
    264         fGuestCanReportAbsolutePosition = true;
    265254    if (   !(fCursorCapabilities & VMMDEV_MOUSE_HOST_CANNOT_HWPOINTER)
    266255        && (fCursorCapabilities & VMMDEV_MOUSE_HOST_WANTS_ABSOLUTE))
    267         fHostWishesToReportAbsolutePosition = true;
    268     pVBox->fUseHardwareCursor = fGuestCanReportAbsolutePosition && fHostWishesToReportAbsolutePosition;
     256        pVBox->fUseHardwareCursor = true;
     257    else
     258        pVBox->fUseHardwareCursor = false;
    269259}
    270260
  • trunk/src/VBox/Main/src-client/MouseImpl.cpp

    r53965 r54054  
    11311131void Mouse::i_sendMouseCapsNotifications(void)
    11321132{
    1133     bool fAbsDev, fRelDev, fMTDev, fCanAbs, fNeedsHostCursor;
     1133    bool fRelDev, fMTDev, fCanAbs, fNeedsHostCursor;
    11341134
    11351135    {
    11361136        AutoReadLock aLock(this COMMA_LOCKVAL_SRC_POS);
    11371137
    1138         i_getDeviceCaps(&fAbsDev, &fRelDev, &fMTDev);
     1138        i_getDeviceCaps(NULL, &fRelDev, &fMTDev);
    11391139        fCanAbs = i_supportsAbs();
    11401140        fNeedsHostCursor = i_guestNeedsHostCursor();
    11411141    }
    1142     if (fAbsDev)
    1143         i_updateVMMDevMouseCaps(VMMDEV_MOUSE_HOST_HAS_ABS_DEV, 0);
    1144     else
    1145         i_updateVMMDevMouseCaps(0, VMMDEV_MOUSE_HOST_HAS_ABS_DEV);
    1146     /** @todo this call takes the Console lock in order to update the cached
    1147      * callback data atomically.  However I can't see any sign that the cached
    1148      * data is ever used again. */
    11491142    mParent->i_onMouseCapabilityChange(fCanAbs, fRelDev, fMTDev, fNeedsHostCursor);
    11501143}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette