VirtualBox

Changeset 22271 in vbox


Ignore:
Timestamp:
Aug 14, 2009 8:39:08 PM (15 years ago)
Author:
vboxsync
Message:

Devices/VMMDev: do not hide the mouse pointer after a restore from saved unless the guest wants to

Location:
trunk/src/VBox/Devices/VMMDev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r22270 r22271  
    707707                                                       NULL);
    708708                }
     709                pThis->fHostCursorRequested = fVisible;
    709710                pRequestHeader->rc = VINF_SUCCESS;
    710711            }
     
    20852086
    20862087
    2087 #define VMMDEV_SSM_VERSION  9
     2088#define VMMDEV_SSM_VERSION  10
    20882089
    20892090/**
     
    21202121#endif /* VBOX_WITH_HGCM */
    21212122
     2123    SSMR3PutU32(pSSMHandle, pThis->fHostCursorRequested);
     2124
    21222125    return VINF_SUCCESS;
    21232126}
     
    21712174#endif /* VBOX_WITH_HGCM */
    21722175
     2176    if (   SSM_VERSION_MAJOR(u32Version) ==  0
     2177        && SSM_VERSION_MINOR(u32Version) >= 10)
     2178        SSMR3GetU32(pSSMHandle, &pThis->fHostCursorRequested);
     2179
    21732180    /*
    21742181     * On a resume, we send the capabilities changed message so
     
    21772184    Log(("vmmdevLoadState: capabilities changed (%x), informing connector\n", pThis->mouseCapabilities));
    21782185    if (pThis->pDrv)
     2186    {
    21792187        pThis->pDrv->pfnUpdateMouseCapabilities(pThis->pDrv, pThis->mouseCapabilities);
     2188        if (   SSM_VERSION_MAJOR(u32Version) ==  0
     2189            && SSM_VERSION_MINOR(u32Version) >= 10)
     2190                pThis->pDrv->pfnUpdatePointerShape(pThis->pDrv,
     2191                                                   pThis->fHostCursorRequested,
     2192                                                   0,
     2193                                                   0, 0,
     2194                                                   0, 0,
     2195                                                   NULL);
     2196    }
    21802197
    21812198    /* Reestablish the acceleration status. */
     
    24732490        pThis->pDrv->pfnUpdateMouseCapabilities(pThis->pDrv, pThis->mouseCapabilities);
    24742491    }
     2492    pThis->fHostCursorRequested = false;
    24752493
    24762494    pThis->hypervisorSize = 0;
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r22270 r22271  
    4444    uint32_t mouseXAbs;
    4545    uint32_t mouseYAbs;
     46    /** Does the guest currently want the host pointer to be shown? */
     47    uint32_t fHostCursorRequested;
    4648
    4749    /** Pointer to device instance. */
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