VirtualBox

Changeset 57345 in vbox for trunk/src/VBox/Additions


Ignore:
Timestamp:
Aug 14, 2015 9:58:20 AM (9 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxmouse: co-ordinate the VMMDev mouse status with the in-process video driver.

File:
1 edited

Legend:

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

    r55401 r57345  
    186186            break;
    187187        /* Tell the host that we want absolute co-ordinates */
    188         rc = VbglR3SetMouseStatus(  VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE
    189                                   | VMMDEV_MOUSE_NEW_PROTOCOL);
     188        rc = VbglR3GetMouseStatus(&fFeatures, NULL, NULL);
     189        fFeatures &= VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR;
     190        if (RT_SUCCESS(rc))
     191            rc = VbglR3SetMouseStatus(  fFeatures
     192                                      | VMMDEV_MOUSE_GUEST_CAN_ABSOLUTE
     193                                      | VMMDEV_MOUSE_NEW_PROTOCOL);
    190194        if (!RT_SUCCESS(rc)) {
    191195            xf86Msg(X_ERROR, "%s: Failed to switch guest mouse into absolute mode\n",
     
    201205        xf86Msg(X_INFO, "%s: Off.\n", pInfo->name);
    202206        rc = VbglR3GetMouseStatus(&fFeatures, NULL, NULL);
     207        fFeatures &= VMMDEV_MOUSE_GUEST_NEEDS_HOST_CURSOR;
    203208        if (RT_SUCCESS(rc))
    204209            rc = VbglR3SetMouseStatus(  fFeatures
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